/*
Theme Name: Shoe Hub
Theme URI: https://fashionarchive.shop
Author: Shoe Hub Team
Author URI: https://fashionarchive.shop
Description: A multi-merchant shoe review theme. Built for the "10 best shoe stores of 2026" site pattern. The frame is built for trust signals, brand grids, and side-by-side comparison — not a generic content blog. Pages render with the_content() so inline-styled review content is preserved.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shoehub
Tags: one-column, e-commerce, custom-menu, custom-logo, translation-ready
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #FAF8F4;   /* warm off-white, like a sneaker wall */
  --white:     #FFFFFF;
  --ink:       #0F0F12;   /* near-black */
  --ink-soft:  #1F1F23;
  --text:      #2A2A2E;
  --text-mute: #76767A;
  --border:    #ECE6DC;
  --border-2:  #D9D2C4;
  --accent:    #D7263D;   /* Zappos-style red */
  --accent-2:  #9C1C2C;
  --gold:      #C9933A;
  --green:     #2E7D4F;   /* trust signals */
  --blue:      #1B4E8A;   /* info */
  --shadow:    0 1px 3px rgba(15,15,18,0.06), 0 4px 12px rgba(15,15,18,0.04);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.2px;
}

p { margin: 0 0 1em; }

code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

blockquote {
  margin: 1.5em 0;
  padding: 0 1.5em;
  border-left: 3px solid var(--accent);
  color: #555;
  font-style: italic;
}

/* ============================================
   TRUST BAR (top)
   ============================================ */
.trust-bar {
  background: var(--ink);
  color: #ECECEC;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  padding: 8px 0;
  text-align: center;
}

.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-bar li { display: inline-flex; align-items: center; gap: 6px; }
.trust-bar .trust-icon { font-size: 14px; line-height: 1; }

@media (max-width: 720px) {
  .trust-bar ul { gap: 14px; font-size: 11.5px; }
  .trust-bar li:nth-child(n+3) { display: none; }
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--accent); }
.site-title .accent { color: var(--accent); }
.site-description { display: none; }

.custom-logo { max-height: 44px; width: auto; }

.header-search {
  position: relative;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.header-search input[type="search"] {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.15s;
}
.header-search input[type="search"]:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
}
.header-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.6;
}

.header-cta { display: flex; gap: 14px; align-items: center; }
.header-cta a {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--ink);
  border: 1px solid var(--border-2);
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.header-cta a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.header-cta a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.header-cta a.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

@media (max-width: 880px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 12px;
  }
  .header-search { grid-column: 1 / -1; max-width: 100%; }
}

/* ============================================
   CATEGORY NAV (under header)
   ============================================ */
.category-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.category-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.category-nav a {
  display: inline-block;
  padding: 13px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.2px;
  transition: color 0.15s, border-color 0.15s;
}

.category-nav a:hover,
.category-nav .current-menu-item > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.category-nav .nav-sale a { color: var(--accent); }

@media (max-width: 720px) {
  .category-nav { padding: 0 16px; }
  .category-nav a { padding: 12px 10px; font-size: 13px; }
}

/* ============================================
   CONTENT
   ============================================ */
.site-content {
  min-height: 60vh;
  padding: 32px 24px 60px;
}

.content-area {
  max-width: 1240px;
  margin: 0 auto;
}

.hentry { margin: 0 0 40px; }

/* ============================================
   BRAND GRID (homepage)
   ============================================ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 40px;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  text-decoration: none;
}

.brand-card-image {
  background: linear-gradient(135deg, #f8f3eb 0%, #ece6db 100%);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.brand-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.brand-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0 0 8px;
}

.brand-card-rating {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.brand-card-rating.top { background: var(--green); }
.brand-card-rating.mid { background: var(--gold); }

.brand-card-excerpt {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.5;
  flex: 1;
}

.brand-card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

@media (max-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ============================================
   STORE PROFILE (single review page)
   ============================================ */
.store-profile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 0 0 28px;
}

.store-profile-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.store-profile-logo {
  background: linear-gradient(135deg, #f8f3eb 0%, #ece6db 100%);
  border-radius: 12px;
  padding: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-profile-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-profile-meta h1 {
  font-size: 30px;
  margin: 0 0 6px;
}

.store-profile-meta .tagline {
  font-size: 15.5px;
  color: var(--text-mute);
  margin: 0 0 14px;
}

.store-profile-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.score-badge.top { background: var(--green); }
.score-badge.mid { background: var(--gold); color: #1a1a1a; }
.score-badge.low { background: var(--accent); }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7f1;
  color: var(--green);
  border: 1px solid #c8e3cd;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}

.trust-chip.amber {
  background: #fdf6e3;
  color: #7a5511;
  border-color: #ead8a3;
}

.trust-chip.gray {
  background: #f5f4f0;
  color: #555;
  border-color: #e0dccf;
}

@media (max-width: 720px) {
  .store-profile { padding: 20px; }
  .store-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .store-profile-logo { max-width: 140px; margin: 0 auto; }
  .store-profile-meta h1 { font-size: 24px; }
}

/* ============================================
   POSTS / STORE LISTS
   ============================================ */
.posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.posts-list .post-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0;
  transition: border-color 0.15s, transform 0.15s;
}

.posts-list .post-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.posts-list .post-title {
  font-size: 19px;
  margin: 0 0 6px;
}
.posts-list .post-title a { color: var(--ink); }
.posts-list .post-title a:hover { color: var(--accent); text-decoration: none; }

.posts-list .post-meta {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0 0 10px;
}

.posts-list .post-excerpt {
  font-size: 14.5px;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.55;
}

.posts-list .read-more {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 720px) {
  .posts-list { grid-template-columns: 1fr; }
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: #f6f2eb;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.compare-table tr:last-child td { border-bottom: 0; }

.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: var(--accent); font-weight: 700; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  max-width: 920px;
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.comments-title { font-size: 22px; margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 14px;
}
.comment-author { font-weight: 600; font-size: 14.5px; }
.comment-date { font-size: 12.5px; color: var(--text-mute); margin-left: 8px; }
.comment-content { margin-top: 8px; font-size: 15px; color: var(--text); }
.comment-respond { margin-top: 28px; }
.comment-respond label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 12px;
  background: #fff;
}
.comment-respond input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.comment-respond input[type="submit"]:hover { background: var(--accent-2); }

/* ============================================
   404
   ============================================ */
.not-found { text-align: center; padding: 60px 20px; }
.not-found h1 { font-size: 84px; color: var(--accent); margin: 0; }
.not-found p { color: var(--text-mute); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: #BFBFC2;
  padding: 40px 24px 22px;
  margin-top: 60px;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2A2A2E;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #BFBFC2; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand strong { color: #fff; font-size: 20px; }
.footer-brand .accent { color: var(--accent); }

.footer-tagline { font-size: 13.5px; line-height: 1.5; color: #98989C; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  color: #76767A;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-trust {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-trust span { color: #98989C; }

@media (max-width: 880px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .trust-bar, .site-header, .category-nav, .site-footer, .pagination, .comments-area { display: none; }
  body { background: #fff; color: #000; }
  .site-content { padding: 0; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 9999;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================
   ENTRY CONTENT SAFETY NET
   ============================================ */
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
