/*
Theme Name: PostPrince
Theme URI: https://postprince.com/
Author: Arena.ai Agent
Author URI: https://arena.ai/
Description: Modern WooCommerce-ready marketplace theme for men's fashion, accessories, watches, gadgets, beard care, skin care, body care, and health products in Lebanon.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: postprince
Tags: e-commerce, custom-logo, custom-menu, featured-images, theme-options, translation-ready, blog, one-column, two-columns
*/

:root {
  --pp-primary: #1e6b62;
  --pp-primary-dark: #174f49;
  --pp-accent: #d9b26f;
  --pp-dark: #0e141b;
  --pp-light: #f5f7f9;
  --pp-surface: #ffffff;
  --pp-text: #13202b;
  --pp-muted: #607080;
  --pp-border: #dbe3ea;
  --pp-radius: 18px;
  --pp-shadow: 0 20px 60px rgba(8, 18, 28, 0.12);
  --pp-shadow-soft: 0 10px 30px rgba(8, 18, 28, 0.08);
  --pp-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pp-text);
  background: var(--pp-light);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--pp-primary);
  text-decoration: none;
}

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

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

.container {
  width: min(100% - 2rem, var(--pp-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.site-wrap {
  min-height: 100vh;
}

.topbar {
  background: var(--pp-dark);
  color: #ffffff;
  font-size: 0.95rem;
}

.topbar p {
  margin: 0;
  padding: 0.7rem 0;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 249, 0.92);
  border-bottom: 1px solid rgba(219, 227, 234, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.custom-logo-link img {
  max-height: 56px;
  width: auto;
}

.site-branding-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--pp-dark);
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--pp-muted);
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  color: var(--pp-dark);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--pp-text);
  font-weight: 600;
  border-radius: 999px;
}

.primary-navigation .current-menu-item > a,
.primary-navigation a:hover {
  background: rgba(30, 107, 98, 0.08);
  color: var(--pp-primary-dark);
}

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

.button,
button,
input[type="submit"],
.wp-element-button,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.button-primary,
button,
input[type="submit"],
.wp-element-button,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--pp-primary);
  color: #ffffff;
}

.button-primary:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--pp-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-ghost {
  border-color: var(--pp-border);
  background: #ffffff;
  color: var(--pp-text);
}

.button-ghost:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(217, 178, 111, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 18, 28, 0.94), rgba(18, 38, 54, 0.92));
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 5.2rem 0 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero .button-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero .button-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.trust-points li {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--pp-text);
  border-radius: calc(var(--pp-radius) + 8px);
  padding: 1.5rem;
  box-shadow: var(--pp-shadow);
}

.hero-card .card-badge,
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(30, 107, 98, 0.08);
  color: var(--pp-primary-dark);
}

.hero-card h2 {
  margin: 0.8rem 0 0.8rem;
  font-size: 1.85rem;
  line-height: 1.15;
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--pp-muted);
}

.hero-stat-grid,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stat,
.fact-card {
  border: 1px solid var(--pp-border);
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
}

.hero-stat strong,
.fact-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.35rem;
  color: var(--pp-dark);
}

.hero-stat span,
.fact-card span {
  color: var(--pp-muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: #ffffff;
}

.section-dark {
  background: var(--pp-dark);
  color: #ffffff;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 100%), var(--pp-light);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2,
.entry-title,
.page-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.entry-meta,
.archive-description,
.page-intro {
  margin: 0;
  color: var(--pp-muted);
}

.section-dark .section-heading p {
  color: rgba(255,255,255,0.76);
}

.category-grid,
.info-grid,
.plan-grid,
.post-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

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

.category-card,
.info-card,
.plan-card,
.article-card,
.contact-card,
.empty-state {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: calc(var(--pp-radius) + 4px);
  padding: 1.35rem;
  box-shadow: var(--pp-shadow-soft);
}

.category-card {
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.article-card:hover,
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 107, 98, 0.2);
  box-shadow: 0 20px 50px rgba(8, 18, 28, 0.12);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.45rem;
  background: rgba(30, 107, 98, 0.08);
}

.category-card h3,
.info-card h3,
.plan-card h3,
.article-card h2,
.contact-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.category-card p,
.info-card p,
.plan-card p,
.article-card p,
.contact-card p,
.entry-content p,
.entry-content li,
.comment-content p {
  color: var(--pp-muted);
}

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

.info-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.info-card p,
.info-card h3 {
  color: #ffffff;
}

.products-shell {
  border-radius: calc(var(--pp-radius) + 6px);
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-card.is-featured {
  border-color: rgba(30, 107, 98, 0.35);
  box-shadow: 0 24px 60px rgba(17, 66, 60, 0.18);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price strong {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--pp-muted);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.plan-card li {
  position: relative;
  padding-inline-start: 1.35rem;
  color: var(--pp-muted);
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--pp-primary);
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--pp-shadow-soft);
}

.step-number {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 107, 98, 0.12);
  color: var(--pp-primary-dark);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--pp-radius) + 8px);
  background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-dark));
  color: #ffffff;
  box-shadow: var(--pp-shadow);
}

.cta-panel h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.cta-panel p,
.cta-panel li {
  color: rgba(255,255,255,0.86);
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.cta-list li::before {
  content: "• ";
  color: var(--pp-accent);
}

.site-content {
  min-height: 60vh;
}

.content-shell,
.shop-shell {
  padding: 4rem 0;
}

.page-header-simple {
  margin-bottom: 1.6rem;
}

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

.article-card .entry-title,
.article-card h2 {
  font-size: 1.45rem;
}

.entry-meta {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.entry-content,
.page-content {
  max-width: 72ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.comment-reply-title,
.comments-title {
  line-height: 1.15;
  margin-top: 2rem;
}

.entry-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--pp-accent);
  background: #ffffff;
  border-radius: 0 18px 18px 0;
}

.pagination,
.nav-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  color: var(--pp-text);
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
  color: #ffffff;
}

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  margin-bottom: 0.8rem;
}

.site-footer {
  background: #0b1118;
  color: rgba(255,255,255,0.82);
  margin-top: 4rem;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.85fr 0.85fr 0.85fr;
  padding: 3rem 0 2rem;
}

.site-footer h3,
.site-footer h4,
.site-footer a {
  color: #ffffff;
}

.footer-note,
.footer-meta {
  color: rgba(255,255,255,0.65);
}

.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-menu,
.footer-links,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--pp-border);
  background: #ffffff;
  color: var(--pp-text);
  padding: 0.9rem 1rem;
  font: inherit;
}

textarea {
  min-height: 140px;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
.menu-toggle:focus,
a:focus {
  outline: 3px solid rgba(30, 107, 98, 0.16);
  outline-offset: 2px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  padding: 1rem;
  box-shadow: var(--pp-shadow-soft);
}

.woocommerce ul.products li.product a img {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  color: var(--pp-text);
}

.woocommerce span.onsale {
  background: var(--pp-accent);
  color: var(--pp-dark);
  border-radius: 999px;
  min-height: auto;
  line-height: 1;
  padding: 0.5rem 0.75rem;
}

.woocommerce div.product div.images img,
.woocommerce div.product div.summary {
  border-radius: 18px;
}

.woocommerce .quantity .qty {
  width: 80px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 16px;
  border-top: none;
}

.woocommerce-checkout .col2-set,
.woocommerce-account .addresses,
.woocommerce .cart-collaterals {
  display: grid;
  gap: 1.5rem;
}

.comments-area {
  margin-top: 3rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .cta-panel,
  .footer-grid,
  .category-grid,
  .info-grid,
  .plan-grid,
  .steps-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.5rem);
    background: #ffffff;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--pp-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-navigation a {
    width: 100%;
  }

  .hero-grid,
  .cta-panel,
  .footer-grid,
  .category-grid,
  .info-grid,
  .plan-grid,
  .steps-grid,
  .post-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 4rem 0;
  }

  .section {
    padding: 3.5rem 0;
  }
}
