/*
Theme Name: Painters Hub - Paint & Accessories WooCommerce Theme
Theme URI: https://iftikhararefin.dev
Author: IFTIKHAR AREFIN
Author URI: https://iftikhararefin.dev
Description: Responsive, category-driven theme for paint, coatings, painting tools and accessories. Built for WooCommerce, with Customizer controls for branding, contact details, homepage content and footer payment banner. Compatible with Elementor (Free).
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 10.0
Requires Plugins: woocommerce
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paintshop
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --ps-primary: #104d3d;
  --ps-primary-dark: #0b3a2e;
  --ps-primary-soft: #e8f1ee;
  --ps-accent: #f5b301;
  --ps-accent-hover: #ffc42e;
  --ps-danger: #e63946;
  --ps-ink: #0f172a;
  --ps-text: #1e293b;
  --ps-muted: #64748b;
  --ps-border: #e2e8f0;
  --ps-surface: #ffffff;
  --ps-tint: #f4f7f6;
  --ps-page: #f8fafc;
  --ps-topbar: #0b1f19;
  --ps-footer: #0b2420;
  --ps-radius: 10px;
  --ps-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.2);
  --ps-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ps-font);
  font-size: 16px;
  color: var(--ps-text);
  background: var(--ps-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ps-primary);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ps-ink);
  line-height: 1.2;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

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

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
}

.ps-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 8px 12px;
  background: #fff;
}

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

.ps-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ps-main {
  flex: 1;
}

.ps-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ps-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ==========================================================================
   3. Top bar
   ========================================================================== */

.ps-topbar {
  background: var(--ps-topbar);
  color: #cbd5e1;
  font-size: 0.8125rem;
}

.ps-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.ps-topbar__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
}

.ps-topbar__group li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ps-topbar .ps-icon {
  width: 16px;
  height: 16px;
}

.ps-topbar a:hover {
  color: var(--ps-accent);
}

.ps-social-link {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 800;
}

/* ==========================================================================
   4. Main header
   ========================================================================== */

.ps-main-header {
  background: var(--ps-surface);
  border-bottom: 1px solid #eef2f5;
  padding: 1rem 0;
}

.ps-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.ps-logo {
  flex: none;
}

.ps-logo .custom-logo-link {
  display: inline-block;
}

.ps-logo__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ps-ink);
}

.ps-logo__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ps-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ps-logo__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ps-ink);
}

.ps-logo__tag {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-primary);
}

.ps-search {
  flex: 1 1 320px;
  max-width: 640px;
  display: flex;
  position: relative;
}

.ps-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--ps-border);
  border-right: 0;
  border-radius: var(--ps-radius) 0 0 var(--ps-radius);
  background: #fff;
  color: var(--ps-text);
  font: inherit;
  font-size: 0.9rem;
}

.ps-search__input:focus {
  outline: none;
  border-color: var(--ps-primary);
}

.ps-search__btn {
  display: grid;
  place-items: center;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
  background: var(--ps-primary);
  color: #fff;
  cursor: pointer;
}

.ps-search__btn:hover {
  background: var(--ps-primary-dark);
}

.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ps-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ps-ink);
}

.ps-action > .ps-icon {
  width: 24px;
  height: 24px;
  color: var(--ps-primary);
}

.ps-action__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ps-action__label {
  font-size: 0.8125rem;
  font-weight: 800;
}

.ps-action__sub {
  font-size: 0.75rem;
  color: var(--ps-muted);
}

.ps-action__icon {
  position: relative;
  display: inline-flex;
}

.ps-action__icon .ps-icon {
  width: 24px;
  height: 24px;
  color: var(--ps-primary);
}

.ps-action--cart {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: var(--ps-page);
}

.ps-action--cart:hover {
  border-color: var(--ps-accent);
}

.ps-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ps-accent);
  color: var(--ps-ink);
  font-size: 0.6875rem;
  font-weight: 900;
}

.ps-cart-total {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ps-ink);
}

/* ==========================================================================
   5. Navigation bar
   ========================================================================== */

.ps-navbar {
  position: relative;
  z-index: 20;
  background: var(--ps-primary);
  color: #fff;
}

.ps-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ps-navbar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  min-height: 52px;
}

.ps-category-wrap {
  position: relative;
}

.ps-category-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: 0;
  background: var(--ps-primary-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ps-category-toggle:hover {
  background: #082b22;
  color: #fff;
}

.ps-category-toggle .ps-icon {
  width: 18px;
  height: 18px;
}

.ps-category-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.25);
}

.ps-category-menu ul {
  list-style: none;
}

.ps-category-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--ps-text);
}

.ps-category-menu a:hover {
  background: var(--ps-primary-soft);
  color: var(--ps-primary);
}

.ps-nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.ps-nav-menu a {
  display: block;
  padding: 0.5rem 0;
  color: #fff;
}

.ps-nav-menu a:hover,
.ps-nav-menu .current-menu-item > a {
  color: var(--ps-accent);
}

.ps-hot-deals {
  padding: 0.5rem 1rem;
  border-radius: var(--ps-radius);
  background: var(--ps-danger);
  color: #fff;
  font-weight: 800;
}

.ps-hot-deals:hover {
  background: #c92a36;
  color: #fff;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--ps-radius);
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ps-btn .ps-icon {
  width: 18px;
  height: 18px;
}

.ps-btn--small {
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
}

.ps-btn--accent {
  background: var(--ps-accent);
  color: var(--ps-ink);
}

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

.ps-btn--primary {
  background: var(--ps-primary);
  color: #fff;
}

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

.ps-btn--ghost {
  border-color: var(--ps-primary);
  color: var(--ps-primary);
}

.ps-btn--ghost:hover {
  background: var(--ps-primary);
  color: #fff;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.ps-hero {
  overflow: hidden;
  padding: 3.5rem 0;
  background: linear-gradient(110deg, #0c3a2e 0%, #104d3d 55%, #1b6b55 100%);
  color: #e6f2ee;
}

.ps-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.ps-hero__title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.ps-hero__text {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  color: #cfe6de;
}

.ps-hero__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin-bottom: 2rem;
  list-style: none;
}

.ps-hero__badges li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ps-radius);
  background: rgba(255, 255, 255, 0.08);
}

.ps-hero__badges .ps-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 0.25rem;
  color: var(--ps-accent);
}

.ps-hero__badges strong {
  font-size: 0.8125rem;
  color: #fff;
}

.ps-hero__badges small {
  font-size: 0.6875rem;
  color: #a7d3c4;
}

.ps-hero__media {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.ps-hero__media img {
  width: 100%;
  max-height: 320px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

.ps-hero__media figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   8. Sections and shared layout
   ========================================================================== */

.ps-section {
  padding: 3rem 0;
}

.ps-section--white {
  background: #fff;
}

.ps-section--tint {
  background: var(--ps-tint);
}

.ps-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ps-section-head--wrap {
  align-items: flex-end;
}

.ps-section-title {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--ps-ink);
}

.ps-section-title--center {
  margin-bottom: 1.75rem;
  text-align: center;
}

.ps-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ps-ink);
}

.ps-link-more .ps-icon {
  width: 16px;
  height: 16px;
}

.ps-link-more:hover {
  color: var(--ps-primary);
}

.ps-empty {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--ps-muted);
}

.ps-empty a {
  font-weight: 700;
  color: var(--ps-primary);
  text-decoration: underline;
}

.ps-grid {
  display: grid;
  gap: 1rem;
}

/* ==========================================================================
   9. Category circles
   ========================================================================== */

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

.ps-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.ps-category-circle {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #d7e7e1;
  border-radius: 50%;
  background: var(--ps-primary-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-category-circle .ps-icon {
  width: 32px;
  height: 32px;
  color: var(--ps-primary);
}

.ps-category-img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.ps-category-card:hover .ps-category-circle {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow);
}

.ps-category-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ps-ink);
}

.ps-category-card:hover .ps-category-name {
  color: var(--ps-primary);
}

/* ==========================================================================
   10. Product tabs and cards
   ========================================================================== */

.ps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.ps-tab {
  padding-bottom: 0.4rem;
  border-bottom: 3px solid transparent;
  color: var(--ps-muted);
}

.ps-tab:hover {
  color: var(--ps-ink);
}

.ps-tab.is-active {
  border-bottom-color: var(--ps-accent);
  color: var(--ps-ink);
}

.ps-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.ps-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow);
}

.ps-product-thumb {
  position: relative;
  display: block;
  height: 170px;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--ps-page);
  overflow: hidden;
}

.ps-product-thumb img {
  position: absolute;
  inset: 0.5rem;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  object-fit: contain;
  margin: 0;
}

.ps-product-title {
  min-height: 2.7rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ps-ink);
}

.ps-product-title a:hover {
  color: var(--ps-primary);
}

.ps-product-bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 0.5rem;
}

.ps-product-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ps-ink);
}

.ps-product-price del {
  margin-right: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ps-muted);
}

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

.ps-product-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ps-btn--card {
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.5rem;
  font-size: 0.8125rem;
}

.ps-btn--card .ps-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   11. Promo banners, brands, features
   ========================================================================== */

.ps-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.ps-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 200px;
  padding: 2.25rem;
  border-radius: 14px;
}

.ps-promo--dark {
  background: var(--ps-primary-dark);
  color: #dcece7;
}

.ps-promo--light {
  background: var(--ps-primary-soft);
}

.ps-promo__title {
  font-size: 1.5rem;
  font-weight: 900;
}

.ps-promo--dark .ps-promo__title {
  color: #fff;
}

.ps-promo__text {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--ps-muted);
}

.ps-promo--dark .ps-promo__text {
  color: #a7d3c4;
}

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

.ps-brand-card {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 0.75rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ps-ink);
}

.ps-brand-card:hover {
  border-color: var(--ps-primary);
  color: var(--ps-primary);
}

.ps-grid--features {
  grid-template-columns: 1fr;
}

.ps-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
}

.ps-feature-card .ps-icon {
  width: 28px;
  height: 28px;
  color: var(--ps-primary);
}

.ps-feature-card h3 {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.ps-feature-card p {
  font-size: 0.8125rem;
  color: var(--ps-muted);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.ps-footer {
  margin-top: 3rem;
  padding: 3.5rem 0 1.5rem;
  background: var(--ps-footer);
  color: #94a3b8;
  font-size: 0.875rem;
}

.ps-footer a {
  color: #cbd5e1;
}

.ps-footer a:hover {
  color: var(--ps-accent);
}

.ps-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.ps-footer__logo {
  margin-bottom: 0.75rem;
  color: #fff;
}

.ps-footer__logo .ps-logo__mark {
  background: var(--ps-accent);
  color: var(--ps-ink);
}

.ps-footer__name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.ps-footer__desc {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ps-footer__title {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
}

.ps-footer__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.8125rem;
}

.ps-footer__contact {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  font-size: 0.8125rem;
}

.ps-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ps-footer__contact .ps-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ps-accent);
}

.ps-social-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.5rem;
}

.ps-social-list a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.ps-social-list a:hover {
  background: var(--ps-accent);
  color: var(--ps-ink);
}

.ps-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.ps-footer__copy {
  color: #94a3b8;
}

.ps-footer__credit {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--ps-accent);
}

.ps-payment-banner {
  display: flex;
}

.ps-payment-banner--left {
  justify-content: flex-start;
}

.ps-payment-banner--center {
  justify-content: center;
}

.ps-payment-banner--right {
  justify-content: flex-end;
}

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

/* ==========================================================================
   13. Content pages, posts, 404
   ========================================================================== */

.ps-content {
  max-width: 880px;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.ps-entry-title {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ps-ink);
}

.ps-entry-title span {
  color: var(--ps-primary);
}

.ps-entry-content {
  font-size: 1rem;
  line-height: 1.7;
}

.ps-entry-content > * + * {
  margin-top: 1rem;
}

.ps-entry-content h2 {
  margin-top: 1.75rem;
  font-size: 1.4rem;
}

.ps-archive-desc {
  margin: -0.5rem 0 1.5rem;
  color: var(--ps-muted);
}

.ps-post {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ps-border);
}

.ps-post__title {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.ps-post__excerpt {
  color: var(--ps-muted);
}

.ps-404 {
  max-width: 640px;
  padding-top: 5rem;
  padding-bottom: 6rem;
  text-align: center;
}

.ps-404__code {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ps-primary);
}

.ps-404__text {
  margin: 0.75rem 0 2rem;
  color: var(--ps-muted);
}

.ps-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   14. WooCommerce shop and category listings
   ========================================================================== */

.ps-woo {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.ps-woo ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-woo ul.products::before,
.ps-woo ul.products::after,
.ps-product-grid::before,
.ps-product-grid::after {
  content: none !important;
  display: none !important;
}

.ps-woo ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.ps-woo .woocommerce-result-count {
  color: var(--ps-muted);
}

.ps-woo .woocommerce-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  margin: 0 2px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  font-weight: 700;
}

.ps-woo .woocommerce-pagination .page-numbers.current,
.ps-woo .woocommerce-pagination .page-numbers:hover {
  background: var(--ps-primary);
  border-color: var(--ps-primary);
  color: #fff;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .ps-grid--categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ps-grid--brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ps-grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ps-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-woo ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ps-promo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .ps-grid--categories {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .ps-grid--brands {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .ps-grid--features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ps-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ps-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
  .ps-woo ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ps-hero__inner {
    grid-template-columns: 1fr;
  }
  .ps-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .ps-hero {
    padding: 2rem 0;
  }
  .ps-hero__badges {
    grid-template-columns: 1fr;
  }
  .ps-action__text {
    display: none;
  }
  .ps-topbar__inner {
    justify-content: center;
    text-align: center;
  }
  .ps-topbar__group {
    justify-content: center;
  }
  .ps-section-head {
    align-items: flex-start;
  }
  .ps-product-thumb {
    height: 140px;
  }
  .ps-promo {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   16. WooCommerce pages: single product, cart, checkout, account, notices
   ========================================================================== */

.woocommerce .woocommerce-products-header__title,
.woocommerce .product_title,
.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ps-ink);
}

/* Buttons: Woo classic and block buttons share the brand look */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-block-components-button,
.wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ps-primary);
  border-radius: var(--ps-radius);
  background: var(--ps-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:hover {
  background: var(--ps-primary-dark);
  border-color: var(--ps-primary-dark);
  color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: var(--ps-ink);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
  background: var(--ps-accent-hover);
  border-color: var(--ps-accent-hover);
  color: var(--ps-ink);
}

.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem 1rem 3rem;
  border-left: 4px solid var(--ps-primary);
  border-radius: var(--ps-radius);
  background: var(--ps-primary-soft);
  color: var(--ps-ink);
  list-style: none;
}

.woocommerce-error {
  border-left-color: var(--ps-danger);
  background: #fdecee;
}

.woocommerce-message a.button,
.woocommerce-message a.wc-forward {
  margin-left: 0.5rem;
}

/* Single product */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .woocommerce div.product {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.woocommerce div.product .woocommerce-product-gallery {
  padding: 1rem;
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  background: #fff;
}

.woocommerce div.product .summary .price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ps-ink);
}

.woocommerce div.product .summary .price del {
  font-size: 1rem;
  color: var(--ps-muted);
}

.woocommerce div.product .summary .price ins {
  text-decoration: none;
  color: var(--ps-danger);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.woocommerce div.product form.cart .quantity .qty {
  width: 84px;
  height: 46px;
  border: 1.5px solid var(--ps-border);
  border-radius: var(--ps-radius);
  font: inherit;
  text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1 1 180px;
}

.ps-buy-now {
  flex: 1 1 180px;
  min-height: 46px;
  font-weight: 800;
}

.woocommerce div.product .product_meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ps-muted);
}

.woocommerce-tabs {
  margin-top: 2.5rem;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  border-bottom: 1px solid var(--ps-border);
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 800;
  color: var(--ps-muted);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--ps-ink);
  box-shadow: inset 0 -3px 0 var(--ps-accent);
}

/* Cart and checkout */
.woocommerce table.shop_table {
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 0.9rem 1rem;
  border-color: var(--ps-border);
  vertical-align: middle;
}

.woocommerce table.shop_table thead th {
  background: var(--ps-page);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ps-muted);
}

.woocommerce .cart_totals,
.woocommerce .cart-collaterals .cart_totals {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container--default .select2-selection--single {
  border: 1.5px solid var(--ps-border);
  border-radius: 8px;
  font: inherit;
  padding: 0.65rem 0.8rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: var(--ps-primary);
  box-shadow: 0 0 0 3px var(--ps-primary-soft);
}

.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
  border-radius: var(--ps-radius);
}

.woocommerce-checkout #payment {
  background: var(--ps-page);
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  color: var(--ps-text);
}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ps-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--ps-primary-soft);
  color: var(--ps-primary);
}

/* Small screens */
@media (max-width: 640px) {
  .woocommerce .woocommerce-products-header__title,
  .woocommerce .product_title {
    font-size: 1.5rem;
  }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.6rem 0.5rem;
  }
  .ps-woo ul.products {
    gap: 0.75rem;
  }
}
