/*
Theme Name:   AriseWP
Theme URI:    https://arisewp.com
Description:  A freemium marketplace theme for hosting WordPress themes and plugins. Built for performance, SEO, and conversions.
Version:      1.0.1
Author:       AriseWP
Author URI:   https://arisewp.com
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  arisewp
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* Self-hosted default fonts (Latin subset) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --bg-body: #0d0e14;
  --bg-card: #13151e;
  --bg-elevated: #1c1f2e;
  --border-color: #252a3a;

  --accent: #7b6fff;
  --accent-hover: #6259e8;
  --accent-glow: rgba(123, 111, 255, 0.2);
  --accent-2: #00d4ff;

  --text-primary: #eeeeff;
  --text-secondary: #9ba3c4;
  --text-muted: #8892b0;

  --green: #00c896;
  --yellow: #ffb800;
  --red: #ff4d6d;

  /* Typography */
  --font-heading: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-size-base: 16px;
  --line-height-body: 1.65;

  /* Spacing (8px grid) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px var(--accent-glow);

  /* Layout */
  --container-width: 1200px;
  --content-width: 780px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.awp-site-body {
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 212, 255, 0.08), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(123, 111, 255, 0.18), transparent 35%),
    var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #7ee6ff;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--text-secondary);
}

.awp-container {
  width: min(var(--container-width), calc(100% - var(--space-4)));
  margin-inline: auto;
}

.awp-main {
  min-height: 60vh;
  padding-top: var(--header-height);
}

.awp-section {
  padding: var(--space-8) 0;
}

.awp-content-wrap {
  width: min(var(--content-width), 100%);
}

.awp-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

.awp-header.is-scrolled {
  background: var(--bg-card);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.awp-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
}

.awp-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.awp-site-title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.awp-nav__menu {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.awp-nav__menu a {
  color: var(--text-secondary);
  font-weight: 500;
}

.awp-nav__menu a:hover,
.awp-nav__menu .current-menu-item > a {
  color: var(--text-primary);
}

.awp-header__toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: var(--space-1);
  cursor: pointer;
}

.awp-header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate to ✕ when nav is open */
.awp-header__toggle[aria-expanded="true"] .awp-header__toggle-line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.awp-header__toggle[aria-expanded="true"] .awp-header__toggle-line:nth-child(3) {
  opacity: 0;
  transform: scaleX(0);
}

.awp-header__toggle[aria-expanded="true"] .awp-header__toggle-line:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.awp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.awp-btn:hover,
.awp-btn:focus {
  transform: translateY(-1px);
  color: #fff;
}

.awp-btn--ghost {
  border-color: var(--text-muted);
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

.awp-btn--ghost:hover,
.awp-btn--ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.awp-btn--small {
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
}

.awp-btn--full {
  width: 100%;
}

.awp-header__cta-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.awp-hero {
  padding: var(--space-12) 0 var(--space-8);
}

.awp-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 16ch;
}

.awp-hero p {
  max-width: 60ch;
  margin-bottom: var(--space-4);
}

.awp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.awp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.awp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
}

.awp-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.awp-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.awp-card__thumb {
  background: var(--bg-elevated);
}

.awp-card__thumb img {
  width: 100%;
  display: block;
}

.awp-card__placeholder {
  display: grid;
  place-items: center;
  height: 200px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.awp-card__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
}

.awp-card__title {
  margin: 0;
  font-size: 1.3rem;
}

.awp-card__title a {
  color: var(--text-primary);
}

.awp-card__excerpt {
  margin: 0;
}

.awp-card__meta {
  display: flex;
  gap: var(--space-1);
}

.awp-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.awp-badge--category {
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--accent-2);
}

.awp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.awp-card__price {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.awp-card__actions {
  display: flex;
  gap: var(--space-1);
}

.awp-archive-head {
  margin-bottom: var(--space-4);
}

.awp-archive-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.awp-product-hero__media {
  position: relative;
  min-height: 320px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-elevated);
}

.awp-product-hero__media img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.awp-product-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(4, 5, 12, 0.88));
  padding: var(--space-8) 0;
  color: #EEEEFF;
}

.awp-product-hero__overlay h1 {
  color: #FFFFFF;
}

.awp-product-hero__overlay p {
  max-width: 65ch;
  color: rgba(255, 255, 255, 0.82);
}

.awp-product-hero__overlay .awp-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.awp-product-hero__overlay .awp-badge--category {
  border-color: rgba(0, 212, 255, 0.4);
  color: #00D4FF;
}

.awp-product-hero__overlay .awp-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.awp-product-hero__overlay .awp-btn--ghost:hover,
.awp-product-hero__overlay .awp-btn--ghost:focus {
  border-color: #fff;
  color: #fff;
}

.awp-product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Hero layout: boxed */
.awp-product-hero--boxed {
  padding-top: var(--space-4);
}

.awp-product-hero--boxed .awp-product-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.awp-product-hero--boxed .awp-product-hero__overlay {
  border-radius: var(--radius-lg);
}

/* Hero layout: compact */
.awp-product-hero--compact {
  padding-top: var(--space-4);
}

.awp-product-hero--compact .awp-product-hero__media {
  min-height: 240px;
  max-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.awp-product-hero--compact .awp-product-hero__media img {
  min-height: 240px;
  max-height: 400px;
}

.awp-product-hero--compact .awp-product-hero__overlay {
  border-radius: var(--radius-lg);
  padding: var(--space-4) 0;
}

.awp-product-hero--compact .awp-product-hero__overlay h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Hero content position: above / below image */
.awp-product-hero__content {
  padding: var(--space-4) 0;
}

.awp-product-hero__content h1 {
  color: var(--text-primary);
}

.awp-product-hero__content p {
  max-width: 65ch;
  color: var(--text-secondary);
}

.awp-product-hero--content-above .awp-product-hero__media,
.awp-product-hero--content-below .awp-product-hero__media {
  min-height: 220px;
}

.awp-product-hero--content-above .awp-product-hero__media img,
.awp-product-hero--content-below .awp-product-hero__media img {
  min-height: 220px;
  max-height: 480px;
}

/* Boxed / compact + above/below need contained rounding on image */
.awp-product-hero--boxed.awp-product-hero--content-above .awp-product-hero__media,
.awp-product-hero--boxed.awp-product-hero--content-below .awp-product-hero__media,
.awp-product-hero--compact.awp-product-hero--content-above .awp-product-hero__media,
.awp-product-hero--compact.awp-product-hero--content-below .awp-product-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.awp-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: var(--space-4);
}

.awp-product-main {
  min-width: 0;
}

.awp-product-sidebar {
  align-self: start;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
}

.awp-details-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.awp-details-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-1);
  color: var(--text-secondary);
}

.awp-details-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.awp-post-list,
.awp-post {
  display: grid;
  gap: var(--space-2);
}

.awp-post {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Single post: prevent grid item from overflowing its column track */
.awp-post--single {
  min-width: 0;
}

/* Post thumbnail (single) */
.awp-post--single .awp-post__thumbnail {
  margin-bottom: var(--space-3);
}

.awp-post--single .awp-post__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* -------------------------------------------------------
   Post content area: classic-editor content containment
   Prevents wide user content (tables, pre, iframes, images
   with explicit widths) from overflowing the article column
   or creating a horizontal scrollbar on mobile.
   ------------------------------------------------------- */
.awp-post__content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.awp-post__content img,
.awp-post__content video,
.awp-post__content iframe,
.awp-post__content embed,
.awp-post__content object {
  max-width: 100%;
  height: auto;
}

.awp-post__content figure {
  max-width: 100%;
  margin-inline: 0;
}

/* Code and pre blocks: horizontal scroll rather than overflow */
.awp-post__content pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
}

/* Tables are wrapped in an overflow div by main.js;
   the table itself gets max-width: 100% as a fallback. */
.awp-post__content .awp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.awp-post__content table {
  max-width: 100%;
}

/* Post thumbnail (listing cards) */
.awp-post--has-thumb {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-3);
  align-items: start;
}

a.awp-post__thumbnail {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

a.awp-post__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.2s;
}

a.awp-post__thumbnail:hover img {
  transform: scale(1.03);
}

/* Post thumbnail (archive cards / homepage) */
.awp-post--archive .awp-post__thumbnail {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.awp-post--archive .awp-post__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.2s;
}

.awp-post--archive .awp-post__thumbnail:hover img {
  transform: scale(1.03);
}

/* Related post thumbnail */
.awp-related-post__thumbnail {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
}

.awp-related-post__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.2s;
}

.awp-related-post__thumbnail:hover img {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .awp-post--has-thumb {
    grid-template-columns: 1fr;
  }
}

.awp-post__title {
  margin-bottom: var(--space-1);
}

.awp-post__title a {
  color: var(--text-primary);
}

.awp-post__meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.awp-blog-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
  gap: var(--space-3);
  align-items: start;
}

.awp-blog-single-sidebar {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
}

.awp-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.awp-toc__item a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}

.awp-toc__item a:hover,
.awp-toc__item a:focus {
  color: var(--text-primary);
}

.awp-toc__item--h2,
.awp-toc__item--h3,
.awp-toc__item--h4,
.awp-toc__item--h5,
.awp-toc__item--h6 {
  padding-left: 0.5rem;
}

.awp-toc__item--h3,
.awp-toc__item--h4,
.awp-toc__item--h5,
.awp-toc__item--h6 {
  padding-left: 1rem;
}

.awp-toc__item--h4,
.awp-toc__item--h5,
.awp-toc__item--h6 {
  padding-left: 1.5rem;
}

.awp-toc__item--h5,
.awp-toc__item--h6 {
  padding-left: 2rem;
}

.awp-toc__item--h6 {
  padding-left: 2.5rem;
}

.awp-cta-strip {
  padding: var(--space-6) 0;
}

.awp-cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid rgba(123, 111, 255, 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(123, 111, 255, 0.16), rgba(0, 212, 255, 0.09));
  padding: var(--space-4);
}

.awp-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: var(--space-8) 0 var(--space-3);
}

.awp-footer__top {
  margin-bottom: var(--space-4);
}

.awp-footer__logo {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.awp-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.awp-footer__col h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.awp-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.awp-footer__col a {
  color: var(--text-secondary);
}

.awp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-2);
}

.awp-section--404 {
  text-align: center;
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-section--404 .awp-content-wrap {
  max-width: 540px;
  margin: 0 auto;
}

/* 404 illustration */
.awp-404-illustration {
  max-width: 420px;
  margin: 0 auto var(--space-3);
}

.awp-404-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Astronaut floating animation */
.awp-404-astronaut {
  animation: awp-float 5s ease-in-out infinite;
}

@keyframes awp-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Star twinkle */
.awp-404-star {
  animation: awp-twinkle 3s ease-in-out infinite;
}

.awp-404-star:nth-child(2n) { animation-delay: 0.4s; }
.awp-404-star:nth-child(3n) { animation-delay: 0.9s; }
.awp-404-star:nth-child(5n) { animation-delay: 1.6s; }
.awp-404-star:nth-child(7n) { animation-delay: 2.2s; }

@keyframes awp-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* Spark pulse at cable end */
.awp-404-spark {
  animation: awp-spark 1.5s ease-in-out infinite;
}

@keyframes awp-spark {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Floating code fragments drift */
.awp-404-fragments {
  animation: awp-drift 7s ease-in-out infinite;
}

@keyframes awp-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* 404 heading */
.awp-404-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 var(--space-1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.awp-404-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1);
}

.awp-404-desc {
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .awp-404-astronaut,
  .awp-404-star,
  .awp-404-spark,
  .awp-404-fragments {
    animation: none;
  }
}

@media (max-width: 600px) {
  .awp-404-illustration {
    max-width: 280px;
  }

  .awp-404-code {
    font-size: 3.5rem;
  }

  .awp-404-title {
    font-size: 1.1rem;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.awp-back-to-top {
  position: fixed;
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.awp-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.awp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}

.awp-blog-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.awp-blog-card__thumb img {
  width: 100%;
  display: block;
}

.awp-blog-card__body {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
}

.awp-blog-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.awp-blog-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.awp-blog-card__title a {
  color: var(--text-primary);
}

.awp-pagination-wrap {
  margin-top: var(--space-4);
}

.awp-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin-right: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0 0.65rem;
}

.awp-pagination-wrap .page-numbers.current {
  border-color: var(--accent);
  color: var(--text-primary);
}

@media (max-width: 1200px) {
  .awp-card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .awp-main {
    padding-top: calc(var(--header-height) + var(--space-1));
  }

  .awp-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .awp-header__toggle {
    display: inline-block;
    justify-self: end;
    position: relative;
    z-index: 1000;
  }

  .awp-header__brand {
    position: relative;
    z-index: 1000;
  }

  .awp-btn--header {
    display: none;
  }

  .awp-header__cta-wrap {
    display: none;
  }

  .awp-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: calc(var(--header-height) + var(--space-2)) var(--space-2) var(--space-3);
  }

  .awp-nav.is-open {
    transform: translateY(0);
  }

  .awp-nav__menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .awp-card-grid--three {
    grid-template-columns: 1fr;
  }

  .awp-product-layout {
    grid-template-columns: 1fr;
  }

  .awp-product-sidebar {
    position: static;
  }

  .awp-footer__links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awp-blog-single-layout {
    grid-template-columns: 1fr;
  }

  .awp-blog-single-sidebar {
    position: static;
  }

  .awp-footer__bottom,
  .awp-cta-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 375px) {
  .awp-container {
    width: min(var(--container-width), calc(100% - var(--space-2)));
  }

  .awp-card__footer,
  .awp-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .awp-footer__links-grid {
    grid-template-columns: 1fr;
  }

  .awp-product-hero__overlay {
    padding: var(--space-4) 0;
  }

  .awp-back-to-top {
    right: var(--space-1);
    bottom: var(--space-1);
  }
}

.awp-product-hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.awp-product-features,
.awp-product-changelog,
.awp-product-screenshots {
  padding-top: 0;
}

.awp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.awp-feature-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
}

.awp-feature-card .dashicons {
  color: var(--accent-2);
  font-size: 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
}

/* ------ Screenshot strip ------ */
.awp-product-screenshots .awp-section__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.awp-screenshots-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.awp-screenshot-strip-wrap {
  position: relative;
}

.awp-screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 380px);
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-2);
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.awp-screenshot-strip::-webkit-scrollbar {
  height: 6px;
}

.awp-screenshot-strip::-webkit-scrollbar-track {
  background: transparent;
}

.awp-screenshot-strip::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

.awp-screenshot-card {
  scroll-snap-align: start;
  margin: 0;
  flex-shrink: 0;
}

.awp-screenshot-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.awp-screenshot-link:hover,
.awp-screenshot-link:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.awp-screenshot-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.awp-screenshot-link:hover img {
  transform: scale(1.03);
}

.awp-screenshot-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 10, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.awp-screenshot-zoom .dashicons {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.awp-screenshot-link:hover .awp-screenshot-zoom,
.awp-screenshot-link:focus-visible .awp-screenshot-zoom {
  opacity: 1;
}

.awp-screenshot-num {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: var(--space-1);
}

/* Strip navigation arrows */
.awp-strip-nav {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: rgba(19, 21, 30, 0.92);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
}

.awp-screenshot-strip-wrap:hover .awp-strip-nav,
.awp-strip-nav:focus-visible {
  opacity: 1;
}

.awp-strip-nav:hover {
  background: rgba(19, 21, 30, 1);
  border-color: var(--accent);
}

.awp-strip-nav .dashicons {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
}

.awp-strip-nav--prev {
  left: -22px;
}

.awp-strip-nav--next {
  right: -22px;
}

.awp-strip-nav[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

/* Edge gradient fades */
.awp-screenshot-strip-wrap::before,
.awp-screenshot-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1rem;
  width: 48px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.awp-screenshot-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-base), transparent);
}

.awp-screenshot-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-base), transparent);
}

.awp-screenshot-strip-wrap.has-scroll-left::before {
  opacity: 1;
}

.awp-screenshot-strip-wrap.has-scroll-right::after {
  opacity: 1;
}

/* Lightbox counter */
.awp-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(19, 21, 30, 0.8);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .awp-screenshot-strip {
    grid-auto-columns: minmax(240px, 85vw);
    gap: var(--space-2);
  }

  .awp-strip-nav {
    display: none;
  }

  .awp-screenshot-strip-wrap::before,
  .awp-screenshot-strip-wrap::after {
    width: 24px;
  }
}

.awp-changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.awp-changelog__item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: var(--space-2);
}

.awp-changelog__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.awp-changelog__head span {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.awp-changelog__changes {
  margin: var(--space-1) 0 0 1.2em;
  padding: 0;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
}

.awp-changelog__older {
  margin-top: var(--space-2);
}

.awp-product-sidebar__actions {
  display: grid;
  gap: var(--space-1);
}

.awp-product-sidebar__stack {
  margin-top: var(--space-3);
}

.awp-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.awp-home-stats {
  padding-top: 0;
}

.awp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.awp-stat-card {
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
}

.awp-stat-card .dashicons {
  color: var(--accent-2);
  font-size: 1.4rem;
}

.awp-stat-card__number {
  margin: var(--space-1) 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.awp-stat-card__label {
  margin: 0;
}

/* Why AriseWP USP section */
.awp-usp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.awp-usp-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-4);
  text-align: center;
}

.awp-usp-card__icon {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.awp-usp-card h3 {
  margin: var(--space-1) 0;
  font-size: 1.15rem;
}

.awp-usp-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.awp-home-testimonials {
  padding-top: var(--space-2);
}

.awp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.awp-testimonial-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
}

.awp-testimonial-card__quote {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.awp-testimonial-card__author {
  margin: 0 0 var(--space-1);
  color: var(--text-primary);
  font-weight: 600;
}

.awp-testimonial-card__product {
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.awp-testimonial-card__stars {
  margin: 0;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

.awp-about-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-4);
  align-items: center;
}

.awp-about-intro__media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.awp-about-intro__img-wrap {
  position: relative;
}

.awp-about-intro__img-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.15;
  z-index: -1;
}

.awp-about-intro__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}

.awp-about-intro__tagline {
  font-size: 1.1rem;
  color: var(--accent-2);
}

.awp-about-intro__bio {
  color: var(--text-secondary);
  line-height: var(--line-height-body);
}

.awp-about-intro__social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.awp-about-intro__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.awp-about-intro__social a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* About stats */
.awp-about-stats {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.awp-about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.awp-about-stats__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.awp-about-stats__label {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* About skills */
.awp-tag-list--lg {
  justify-content: center;
}

.awp-tag-list--lg .awp-badge {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

/* About values */
.awp-about-values__mission {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto var(--space-6);
}

.awp-about-values__mission h2 {
  margin-bottom: var(--space-2);
}

.awp-about-values__mission p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.awp-about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.awp-about-values__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.awp-about-values__card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.awp-about-values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.awp-about-values__card h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--space-1);
}

.awp-about-values__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* About timeline */
.awp-about-timeline__track {
  position: relative;
  padding-left: 36px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.awp-about-timeline__track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.awp-about-timeline__item {
  position: relative;
  padding-bottom: var(--space-4);
}

.awp-about-timeline__item:last-child {
  padding-bottom: 0;
}

.awp-about-timeline__marker {
  position: absolute;
  left: -36px;
  top: 4px;
}

.awp-about-timeline__dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--accent);
  background: var(--bg-body);
}

.awp-about-timeline__item--first .awp-about-timeline__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.awp-about-timeline__year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: var(--bg-elevated);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-1);
}

.awp-about-timeline__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.awp-about-timeline__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* About contact CTA */
.awp-about-contact__card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
}

.awp-about-contact__card h2 {
  margin-bottom: var(--space-1);
}

.awp-about-contact__card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.awp-about-contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
}

/* About responsive */
@media (max-width: 768px) {
  .awp-about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .awp-about-values__grid {
    grid-template-columns: 1fr;
  }

  .awp-about-stats__number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .awp-about-stats__grid {
    grid-template-columns: 1fr;
  }
}

.awp-page--full-width {
  width: 100%;
}

.awp-widget {
  margin-bottom: var(--space-2);
}

.awp-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.awp-widget__title {
  margin-bottom: var(--space-1);
}

@media (max-width: 768px) {
  .awp-features-grid,
  .awp-testimonial-grid,
  .awp-stats-grid,
  .awp-usp-grid,
  .awp-about-intro__grid {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs */
.awp-breadcrumbs {
  padding: var(--space-2) 0 0;
  width: min(var(--container-width), calc(100% - var(--space-4)));
  margin-inline: auto;
}

.awp-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.awp-breadcrumbs__item + .awp-breadcrumbs__item::before {
  content: '/';
  margin-right: 0.25rem;
}

.awp-breadcrumbs__item a {
  color: var(--text-secondary);
}

.awp-breadcrumbs__item a:hover {
  color: var(--text-primary);
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Blog author box */
.awp-author-box {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
  margin-top: var(--space-4);
}

.awp-author-box__avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.awp-author-box__name {
  margin: 0 0 var(--space-1);
  font-size: 1.1rem;
}

.awp-author-box__bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Post meta line */
.awp-post__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: var(--space-2);
}

.awp-post__meta-line a {
  color: var(--text-secondary);
}

/* Post tags */
.awp-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

/* Related posts */
.awp-related-posts {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-4);
}

.awp-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.awp-related-post {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
}

.awp-related-post__title {
  margin: 0 0 var(--space-1);
  font-size: 1.05rem;
}

.awp-related-post__title a {
  color: var(--text-primary);
}

/* Share links */
.awp-share {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.awp-share__label {
  margin: 0;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.awp-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.awp-share__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.awp-share__links a svg {
  flex-shrink: 0;
}

.awp-share__links a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* WP Comments */
.awp-comments {
  margin-top: var(--space-4);
}

.awp-comments .comment-list {
  list-style: none;
  padding: 0;
}

.awp-comments .comment-body {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}

.awp-comments .comment-respond textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: var(--space-2);
}

.awp-comments .comment-respond input[type="text"],
.awp-comments .comment-respond input[type="email"],
.awp-comments .comment-respond input[type="url"] {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.5rem var(--space-2);
}

.awp-comments .submit {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Search results */
.awp-search-header {
  margin-bottom: var(--space-4);
}

.awp-search-form {
  display: flex;
  gap: var(--space-1);
  max-width: 500px;
  margin-top: var(--space-2);
}

.awp-search-form input[type="search"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
}

/* Homepage search */
.awp-hero__search {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
  max-width: 520px;
}

.awp-hero__search input[type="search"] {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
}

.awp-hero__search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.awp-hero__search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
}

.awp-hero__search button:hover {
  background: var(--accent-hover);
}

/* Newsletter */
.awp-newsletter {
  padding: var(--space-6) 0;
  text-align: center;
}

.awp-newsletter__form {
  display: flex;
  gap: var(--space-1);
  max-width: 460px;
  margin: var(--space-2) auto 0;
}

.awp-newsletter__form input[type="email"] {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
}

/* Related products */
.awp-related-products {
  margin-top: var(--space-6);
}

@media (max-width: 768px) {
  .awp-author-box {
    flex-direction: column;
  }
  .awp-related-posts__grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial card avatar */
.awp-testimonial-card__avatar {
  margin-bottom: var(--space-1);
}

.awp-testimonial-card__avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

/* Testimonial form */
.awp-testimonial-form {
  max-width: 720px;
  margin: 0 auto;
}

.awp-testimonial-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.awp-testimonial-form__field {
  margin-bottom: var(--space-3);
}

.awp-testimonial-form__field label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.awp-testimonial-form__field label span {
  color: var(--red);
}

.awp-testimonial-form__field input,
.awp-testimonial-form__field select,
.awp-testimonial-form__field textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.awp-testimonial-form__field input:focus,
.awp-testimonial-form__field select:focus,
.awp-testimonial-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.awp-testimonial-form__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba3c4' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.awp-testimonial-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.awp-testimonial-form__field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.awp-testimonial-form__captcha {
  max-width: 260px;
}

.awp-testimonial-form__submit {
  margin-top: var(--space-2);
}

.awp-testimonial-form__message {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.awp-testimonial-form__message--success {
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid var(--green);
  color: var(--green);
}

.awp-testimonial-form__message--error {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

@media (max-width: 768px) {
  .awp-testimonial-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── Contact Page ── */
.awp-contact-hero {
  text-align: center;
  padding-bottom: 0;
}

.awp-contact-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.awp-contact-hero__inner h1 {
  margin-bottom: var(--space-1);
}

.awp-contact-hero__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.awp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  align-items: start;
}

/* Contact form */
.awp-contact-form-wrap h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}

.awp-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.awp-contact-form__field {
  margin-bottom: var(--space-3);
}

.awp-contact-form__field label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.awp-contact-form__field label span {
  color: var(--red);
}

.awp-contact-form__field input,
.awp-contact-form__field select,
.awp-contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.awp-contact-form__field input:focus,
.awp-contact-form__field select:focus,
.awp-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.awp-contact-form__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ba3c4' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.awp-contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.awp-contact-form__field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.awp-contact-form__captcha {
  max-width: 260px;
}

/* Honeypot hidden field */
.awp-contact-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.awp-contact-form__submit {
  margin-top: var(--space-2);
}

.awp-contact-form__submit .awp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.awp-contact-form__submit .awp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.awp-contact-form__btn-loading[hidden] {
  display: none;
}

.awp-contact-form__btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.awp-contact-form__message {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.awp-contact-form__message--success {
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid var(--green);
  color: var(--green);
}

.awp-contact-form__message--error {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

/* Contact sidebar */
.awp-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.awp-contact-sidebar__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.awp-contact-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.awp-contact-sidebar__card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.awp-contact-sidebar__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.awp-contact-sidebar__card a {
  font-size: 0.9rem;
  color: var(--accent-2);
  text-decoration: none;
}

.awp-contact-sidebar__card a:hover {
  text-decoration: underline;
}

.awp-contact-sidebar__social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.awp-contact-sidebar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.awp-contact-sidebar__social a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
}

/* Contact responsive */
@media (max-width: 900px) {
  .awp-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .awp-contact-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .awp-contact-sidebar__card {
    flex: 1 1 200px;
  }
}

@media (max-width: 600px) {
  .awp-contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .awp-contact-sidebar {
    flex-direction: column;
  }
}

/* ── Page Sidebar Layout ── */
.awp-page-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: var(--space-4);
  align-items: start;
}

.awp-page-sidebar-layout__sidebar {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
}

.awp-page-sidebar-layout__sidebar .awp-widget + .awp-widget {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .awp-page-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .awp-page-sidebar-layout__sidebar {
    position: static;
  }
}

/* ── Recent Products Widgets ── */
.awp-recent-products {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* List style */
.awp-recent-products--list .awp-recent-products__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
  border-radius: var(--radius-sm);
}

.awp-recent-products--list .awp-recent-products__item:last-child {
  border-bottom: none;
}

.awp-recent-products--list .awp-recent-products__item:hover {
  background: var(--bg-elevated);
}

.awp-recent-products__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-recent-products__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awp-recent-products__no-img {
  color: var(--text-muted);
}

.awp-recent-products__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.awp-recent-products__name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-recent-products__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.awp-recent-products__price {
  color: var(--green);
  font-weight: 600;
}

/* Compact style */
.awp-recent-products--compact .awp-recent-products__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.awp-recent-products--compact .awp-recent-products__item:last-child {
  border-bottom: none;
}

.awp-recent-products--compact .awp-recent-products__item:hover {
  color: var(--accent);
}

.awp-recent-products--compact .awp-recent-products__name {
  font-size: 0.88rem;
  font-weight: 500;
}

.awp-recent-products--compact .awp-recent-products__meta {
  flex-shrink: 0;
}

/* Card style */
.awp-recent-products--card {
  gap: 0.75rem;
}

.awp-recent-products--card .awp-recent-products__item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.awp-recent-products--card .awp-recent-products__item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.awp-recent-products--card .awp-recent-products__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.awp-recent-products--card .awp-recent-products__name {
  font-size: 0.92rem;
  white-space: normal;
}

.awp-recent-products--card .awp-recent-products__meta {
  margin-top: 0.25rem;
}
