/*
Theme Name:   Magazine Premium Child
Theme URI:    https://truepornreviews.com
Description:  Child theme for Magazine Premium — sales-optimized review design with discount badges, star ratings, CTA buttons, and full mobile responsiveness.
Author:       Custom
Template:     magazine-premium-master
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  magazine-premium-child
*/

/* ============================================================
   IMPORT PARENT THEME
   ============================================================ */
@import url("../magazine-premium-master/style.css");

/* ============================================================
   DESIGN TOKENS / VARIABLES
   ============================================================ */
:root {
  --color-primary:     #e8000d;   /* hot red — urgent/discount */
  --color-primary-dk:  #b80009;
  --color-cta:         #dc3545;   /* red — "get deal" button (A/B test) */
  --color-cta-dk:      #b02a37;
  --color-accent:      #FF6B35;   /* orange — highlights, badges */
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;
  --color-bg:          #f1f5f9;
  --color-card:        #ffffff;
  --color-border:      #e2e8f0;
  --color-star:        #fbbf24;

  --radius-card:       12px;
  --radius-btn:        8px;
  --shadow-card:       0 2px 12px rgba(0,0,0,.09);
  --shadow-card-hover: 0 8px 28px rgba(0,0,0,.16);
  --transition:        all .22s ease;

  --font-body:         'Inter', 'Segoe UI', sans-serif;
  --font-heading:      'Inter', 'Segoe UI', sans-serif;
}

/* ============================================================
   GOOGLE FONTS — load Inter for modern feel
   (also add in functions.php wp_enqueue_style)
   ============================================================ */

/* ============================================================
   GLOBAL RESET OVERRIDES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dk); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  margin-top: 0;
}

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

/* ============================================================
   HEADER — sticky, logo left + search right
   ============================================================ */
#header {
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo / site title — fixed width so search gets all remaining space */
.header-logo-wrap {
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 220px;
}

/* Override parent theme's huge padding on #site-logo */
#site-logo {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

#site-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

#site-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
}

#site-title a { color: var(--color-text); }
#site-title a:hover { color: var(--color-primary); }

#site-description {
  font-size: .72rem;
  color: var(--color-text-muted);
  margin: 2px 0 0;
  padding: 0 !important;
}

/* Override parent theme #title-wrapper margin */
#title-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* Search — fills all remaining header space */
.header-search-wrap {
  flex: 1 1 0%;
  min-width: 0;
  max-width: none;
}

.header-search-wrap .search-form {
  display: flex;
  height: 46px;
  width: 100%;
}

.header-search-wrap .search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 18px;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  height: 100%;
  background: #f8fafc;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.header-search-wrap .search-form input[type="search"]::placeholder {
  color: #94a3b8;
}

.header-search-wrap .search-form input[type="search"]:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,0,13,.10);
}

.header-search-wrap .search-form input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 44px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  height: 100%;
  transition: background .2s;
  white-space: nowrap;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 140px;
}

.header-search-wrap .search-form input[type="submit"]:hover {
  background: var(--color-primary-dk);
}

/* ---- SEARCH AUTOCOMPLETE DROPDOWN ---- */
#search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 9999;
  overflow: hidden;
}

#search-suggestions.is-open { display: block; }

#search-suggestions li {
  margin: 0;
  padding: 0;
  border: none !important;
  display: block !important;
}

#search-suggestions li a {
  display: block;
  padding: 9px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text) !important;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#search-suggestions li a:hover,
#search-suggestions li.active a {
  background: var(--color-primary);
  color: #fff !important;
}

/* ---- END AUTOCOMPLETE ---- */

/* Mobile burger */
.mobile-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0;
  margin-right: 8px;
  min-width: 44px;
  min-height: 44px;
}

.mobile-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Navigation bar */
#nav-wrapper { background: var(--color-text); }

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.menus ul { margin: 0; padding: 0; list-style: none; }

.menus ul li a {
  color: #f8fafc;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 11px 14px;
  display: block;
  transition: var(--transition);
}

.menus ul li a:hover,
.menus ul li.current-menu-item > a {
  color: var(--color-accent);
  background: rgba(255,255,255,.06);
}

.menus ul ul {
  background: #1e293b;
  border-top: 2px solid var(--color-primary);
  min-width: 200px;
  box-shadow: var(--shadow-card-hover);
}

.menus ul ul li a {
  font-size: .82rem;
  padding: 9px 18px;
  text-transform: none;
  letter-spacing: 0;
}

/* Old mobile menu — hide (replaced by burger) */
#mobile-menu { display: none !important; }
#drop-down-search { display: none !important; }

/* ============================================================
   PAGINATION — "Porn Deals X of Y"
   ============================================================ */
#pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.total-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--color-text-muted);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  white-space: nowrap;
}

.pagination-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  font-size: .75rem;
}

.pagination-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

.pagination-sep { font-size: .75rem; color: var(--color-text-muted); }

.pagination-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Page number links */
#pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-decoration: none;
}

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

/* Responsive header */
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; padding: 8px 12px; gap: 10px; }
  .header-logo-wrap { flex: 1 1 auto; }
  .mobile-burger { display: flex; order: -1; }
  .header-search-wrap { order: 3; width: 100%; flex: 1 1 100%; }
  .header-search-wrap .search-form { height: 42px; }
  .header-search-wrap .search-form input[type="submit"] {
    min-width: 0;
    padding: 0 16px;
    font-size: .85rem;
    letter-spacing: .04em;
  }
  #nav-wrapper .menus { display: none; }
  #nav-wrapper .menus.is-open { display: block; }
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

#primary { padding-right: 24px; }

/* ============================================================
   POST CARDS — horizontal list layout (image left, content right)
   One card per row — maximum focus per offer
   ============================================================ */

/* Card wrapper: horizontal flex row */
article.post,
article.type-post {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;   /* ← horizontal */
  position: relative;
  min-height: 200px;
}

article.post:hover,
article.type-post:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-3px);
}

/* ---- THUMBNAIL — fixed width on left ---- */
.review-thumb-wrap {
  position: relative;
  overflow: hidden;
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: #1e293b;
}

.review-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

article.post:hover .review-thumb-wrap img,
article.type-post:hover .review-thumb-wrap img {
  transform: scale(1.06);
}

/* ---- DISCOUNT BADGE ---- */
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 5;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (max-width: 700px) {
  .badge-discount {
    font-size: .82rem;
    padding: 5px 10px;
  }
}

/* ---- LABEL BADGES ---- */
.badge-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 5;
}

.badge-label.top       { background: #f97316; color: #fff; }
.badge-label.hot       { background: var(--color-primary); color: #fff; }
.badge-label.exclusive { background: #7c3aed; color: #fff; }
.badge-label.free      { background: #059669; color: #fff; }

/* ---- CARD BODY — right side ---- */
.card-body {
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* prevent overflow */
}

/* ---- TOP ROW: title block + rating badge ---- */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title-block { flex: 1; min-width: 0; }

/* ---- RATING BADGE — dark box top-right ---- */
.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.5px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  line-height: 1;
}

.rating-badge .rating-max {
  font-size: .58rem;
  font-weight: 500;
  opacity: .65;
  margin-top: 2px;
  letter-spacing: 0;
}

/* ---- CATEGORY TAG ---- */
.post-category { margin-bottom: 3px; }

.post-category a {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  background: rgba(220,53,69,.08);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---- TITLE ---- */
.entry-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.entry-title a { color: var(--color-text); }
.entry-title a:hover { color: var(--color-primary); }

/* ---- STAR RATING ---- */
.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.stars { display: inline-flex; gap: 1px; }

.stars span        { color: #d1d5db; font-size: 1rem; line-height: 1; }
.stars span.filled { color: var(--color-star); }

.rating-number {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ---- META ---- */
.entry-meta {
  font-size: .72rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.entry-meta a { color: var(--color-text-muted); }
.entry-meta a:hover { color: var(--color-primary); }

/* ---- EXCERPT ---- */
.excerpt {
  font-size: .9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.excerpt p { margin: 0; }

/* ---- BOTTOM ROW: price left + button right ---- */
.card-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ---- PRICE ROW ---- */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.price-old  { font-size: .85rem; color: #94a3b8; text-decoration: line-through; }
.price-new  { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); }
.price-free { font-size: 1.4rem; font-weight: 800; color: #059669; }

/* ---- CTA BUTTON ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-cta);
  color: #fff !important;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(220,53,69,.38);
  white-space: nowrap;
  flex-shrink: 0;
}

/* When there's no price — button stretches full width */
.card-body > .btn-cta {
  width: 100%;
  margin-top: auto;
}

.btn-cta:hover {
  background: var(--color-cta-dk);
  box-shadow: 0 6px 22px rgba(220,53,69,.52);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-cta .arrow { transition: transform .2s ease; }
.btn-cta:hover .arrow { transform: translateX(3px); }

/* CTA button text: full on desktop, short on mobile */
.cta-short { display: none; }
@media (max-width: 768px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* ============================================================
   MOBILE: stack card vertically (image on top, content below)
   ============================================================ */
@media (max-width: 700px) {
  article.post,
  article.type-post {
    flex-direction: column;
  }

  .review-thumb-wrap {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    height: auto;
  }

  .card-body { padding: 16px; }

  .card-bottom-row { flex-direction: column; align-items: stretch; }
  .btn-cta { width: 100% !important; }
}


/* ============================================================
   REVIEW LIST — override ALL parent theme column classes
   Every article is full-width in our horizontal layout
   ============================================================ */

/* Force all post articles to full width regardless of parent theme classes */
#primary article.post,
#primary article.type-post {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  clear: both;
}

/* Override parent theme column widths on card wrappers */
.review-list,
.row > article.post,
.row > article.type-post {
  width: 100% !important;
  float: none !important;
}

/* Remove parent theme border dividers between column groups */
.c12.border { display: none !important; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary {
  padding-left: 4px;
}

.widget {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.widget ul { padding: 0; margin: 0; list-style: none; }
.widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.widget ul li:last-child { border-bottom: none; }

/* Top Deals widget box */
.widget-top-deals {
  background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
  border: 1px solid rgba(232,0,13,.15);
}

/* ---- SIDEBAR LINKS — numbered site list for SEO ---- */
.widget ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Numbered list counter */
.widget ul.numbered-list {
  counter-reset: widget-counter;
}

.widget ul.numbered-list li {
  counter-increment: widget-counter;
}

.widget ul.numbered-list li::before {
  content: counter(widget-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--color-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

/* Site link style */
.widget ul li a {
  font-weight: 600;
  color: var(--color-text);
  font-size: .9rem;
  flex: 1;
  transition: color .18s;
}

.widget ul li a:hover {
  color: var(--color-primary);
}

/* Rating next to site name */
.widget ul li .site-rating {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- A–Z SITE INDEX WIDGET ---- */
.widget-az-index { padding: 18px 16px; }

/* Letter jump bar */
.az-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

.az-letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--color-text);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.az-letter-btn:hover,
.az-letter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* "All" button slightly wider */
.az-letter-btn.az-all {
  width: auto;
  padding: 0 10px;
  font-size: .72rem;
}

/* Scrollable list area — no scroll by default, scroll only when .is-long */
.az-list {
  overflow-y: visible;
}

.az-list.is-long {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.az-list.is-long::-webkit-scrollbar { width: 4px; }
.az-list.is-long::-webkit-scrollbar-track { background: transparent; }
.az-list.is-long::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

/* Letter group */
.az-group { margin-bottom: 10px; }

.az-group-letter {
  display: block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary);
  padding: 4px 0 3px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.az-group ul { margin: 0; padding: 0; list-style: none; }

.az-group ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.az-group ul li:last-child { border-bottom: none; }

.az-group ul li a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.az-group ul li a:hover { color: var(--color-primary); }

.az-group ul li .site-rating {
  font-size: .7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- SIDEBAR DEAL CARD — mini version ---- */
.sidebar-deal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.sidebar-deal-item:last-child { border-bottom: none; }

.sidebar-deal-item img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-deal-info { flex: 1; min-width: 0; }

.sidebar-deal-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 3px;
}

.sidebar-deal-price {
  font-size: .78rem;
  font-weight: 800;
  color: var(--color-primary);
}

.sidebar-deal-item:hover .sidebar-deal-title { color: var(--color-primary); }

/* Hide lower front page section (Advanced Front Page lower block) */
#lower-index { display: none !important; }

/* ============================================================
   SINGLE POST PAGE — full review layout
   ============================================================ */

/* Reset card styles for single post */
.single article.post,
.single article.type-post,
article.single-review {
  display: block !important;
  flex-direction: unset !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  min-height: unset !important;
  margin-bottom: 0 !important;
}

/* ---- HERO: image left (40%) + meta right (60%) ---- */
.sr-hero {
  display: flex;
  gap: 28px;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px rgba(0,0,0,.07);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-bottom: 28px;
}

.sr-thumb {
  position: relative;
  flex: 0 0 38%;
  max-width: 38%;
  max-height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
}

.sr-thumb-link {
  display: block;
  position: relative;
  line-height: 0;
}

.sr-thumb img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 10px;
  transition: transform .3s ease;
}

.sr-thumb-link:hover img {
  transform: scale(1.03);
}

/* "Get Discount" overlay on hover */
.sr-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  padding: 28px 12px 14px;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity .25s ease;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sr-thumb-link:hover .sr-thumb-overlay {
  opacity: 1;
}

/* Icon in CTA button */
.btn-icon {
  font-style: normal;
  margin-right: 2px;
}

.sr-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.sr-title {
  font-size: 1.7rem !important;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 !important;
  color: var(--color-text);
}

.sr-rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sr-price {
  margin: 0;
}

/* CTA in hero */
.sr-cta {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1rem;
}

.sr-date-meta {
  font-size: .78rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}

/* ---- FULL CONTENT ---- */
/* ---- Headline highlight banner (yellow Amazon-style) ---- */
.sr-headline-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF176;
  border: 2px solid #F9A825;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.sr-headline-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sr-headline-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.sr-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px rgba(0,0,0,.07);
  border: 1px solid var(--color-border);
  padding: 28px 32px;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.sr-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 24px 0 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.sr-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--color-text);
}

/* Images inside content — full width, rounded */
.sr-content img {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
  margin: 16px 0;
  display: block;
}

/* Remove extra margin from <p> wrapping images (wpautop) */
.sr-content p:has(> img:only-child) {
  margin: 0;
  line-height: 0;
  font-size: 0;
}

/* Coupon image link — make it a proper block */
.sr-content a:has(> img),
.sr-content p > a:has(> img) {
  display: block;
  line-height: 0;
  font-size: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity .2s, transform .2s;
}

.sr-content a:has(> img):hover {
  opacity: .92;
  transform: translateY(-2px);
}

/* h2 in content — slightly less dramatic than default */
.sr-content h2:first-child {
  margin-top: 0;
}

/* Coupon anchor — offset for sticky header */
#site-coupon {
  scroll-margin-top: 80px;
}

/* ---- PREV / NEXT NAVIGATION ---- */
.sr-post-nav {
  margin-bottom: 32px;
}

.sr-post-nav__title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.sr-post-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* If only one nav card, stretch it */
.sr-post-nav__grid:has(.sr-nav-card:only-child) {
  grid-template-columns: 1fr;
}

.sr-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  overflow: hidden;
}

.sr-nav-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.11);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.sr-nav-next {
  flex-direction: row-reverse;
  text-align: right;
}

.sr-nav-card__img {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.sr-nav-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-nav-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-text-muted);
}

.sr-nav-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sr-nav-card__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
}

.sr-nav-card__name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-nav-card__rating {
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ---- MOBILE: single post stacks vertically ---- */
@media (max-width: 700px) {
  .sr-hero {
    flex-direction: column;
    padding: 16px;
  }

  .sr-thumb {
    flex: unset;
    max-width: 100%;
    width: 100%;
    max-height: 220px;
  }

  .sr-content { padding: 18px 16px; }

  .sr-bottom-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .sr-post-nav__grid { grid-template-columns: 1fr; }
  .sr-nav-next { flex-direction: row; text-align: left; }
}

/* Single post review box */
.review-summary-box {
  background: #fff;
  border: 2px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin: 28px 0;
}

.review-summary-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* Pros / Cons lists */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pros li::before { content: '✓ '; color: var(--color-cta); font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--color-primary); font-weight: 700; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.pros ul li, .cons ul li { font-size: .9rem; padding: 4px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px;
  margin-top: 48px;
}

#footer .row { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

#footer a { color: #cbd5e1; }
#footer a:hover { color: #fff; }

#footer .widget-title {
  color: #f1f5f9;
  border-bottom-color: var(--color-primary);
}

.footer-credits {
  text-align: center;
  font-size: .8rem;
  border-top: 1px solid #1e293b;
  margin-top: 28px;
  padding-top: 16px;
  color: #64748b;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}

.search-form input[type="search"]:focus {
  border-color: var(--color-primary);
}

.search-form input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  transition: var(--transition);
}

.search-form input[type="submit"]:hover {
  background: var(--color-primary-dk);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination, #posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
#posts-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.pagination a:hover,
#posts-pagination a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   MISCELLANEOUS UTILITIES
   ============================================================ */
.screen-reader-text { position: absolute; clip: rect(0,0,0,0); height: 1px; width: 1px; }

.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Focus states for accessibility */
a:focus, button:focus, input:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  #primary { padding-right: 0; }

  .row { flex-wrap: wrap; }

  .c8, .c9 { width: 100% !important; }
  .c4, .c3 { width: 100% !important; padding-left: 0 !important; }

  #secondary { margin-top: 28px; }

  .pros-cons { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* Single column grid */
  .home-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Header */
  #header { position: sticky; top: 0; }

  #mobile-menu { display: flex; }

  .title-logo-wrapper { padding: 8px 0; }

  #site-title a { font-size: 1.25rem; }

  /* Hide desktop nav, show mobile */
  #nav-wrapper .menus { display: none; }
  #nav-wrapper .menus.is-open { display: block; }

  .menus ul li { border-bottom: 1px solid rgba(255,255,255,.07); }

  /* Cards */
  .card-body { padding: 14px 16px 16px; }

  .entry-title { font-size: 1.05rem !important; }

  .btn-cta {
    font-size: .9rem;
    padding: 14px 16px;
    /* Bigger touch target */
    min-height: 50px;
  }

  /* Price row */
  .price-new { font-size: 1.15rem; }

  /* Single post */
  .review-summary-box { padding: 16px; }

  /* Footer */
  #footer .c4 { width: 100% !important; margin-bottom: 20px; }

  /* Pagination — bigger tap targets */
  .pagination a,
  .pagination span,
  #posts-pagination a {
    min-width: 44px;
    height: 44px;
  }

  /* Main padding */
  #main { padding: 0 12px; margin-top: 14px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  #site-title a { font-size: 1.1rem; }
  .entry-title { font-size: .97rem !important; }
  .btn-cta { font-size: .85rem; }
}

/* ============================================================
   TOP 10 DEALS PAGE
   ============================================================ */
.td-page-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }

.td-header {
  text-align: center;
  padding: 32px 0 28px;
}
.td-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}
.td-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* List reset */
.td-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card */
.td-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 16px rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow .22s ease;
  position: relative;
}
.td-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.13); }

/* Top 3 highlights */
.td-gold   { border-color: #f59e0b; border-width: 2px; }
.td-silver { border-color: #94a3b8; border-width: 2px; }
.td-bronze { border-color: #b45309; border-width: 2px; }
.td-gold   .td-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.td-silver .td-rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.td-bronze .td-rank { background: linear-gradient(135deg, #d97706, #b45309); }

/* Rank column */
.td-rank {
  flex: 0 0 72px;
  min-width: 72px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  align-self: stretch;
}
.td-rank-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.td-gold   .td-rank-num,
.td-silver .td-rank-num,
.td-bronze .td-rank-num { color: #fff; }
/* Default (ranks 4-10) */
.td-card:not(.td-gold):not(.td-silver):not(.td-bronze) .td-rank {
  background: #e2e8f0;
}
.td-card:not(.td-gold):not(.td-silver):not(.td-bronze) .td-rank-num {
  color: var(--color-text-muted);
}
.td-medal { font-size: 1.4rem; margin-top: 4px; line-height: 1; }

/* Thumbnail column */
.td-thumb {
  flex: 0 0 200px;
  max-width: 200px;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}
.td-thumb img,
.td-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}
.td-img-placeholder {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 16px;
  text-align: center;
}

.td-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Body */
.td-body {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.td-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}
.td-desc {
  font-size: .92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.td-btn {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: .95rem;
  width: auto;
}

/* Mobile */
@media (max-width: 640px) {
  .td-card { flex-direction: column; align-items: stretch; }
  .td-rank { flex-direction: row; gap: 8px; padding: 10px 16px; min-width: 0; flex: unset; }
  .td-thumb { flex: unset; max-width: 100%; max-height: 180px; }
  .td-thumb img { max-height: 180px; }
  .td-body { padding: 16px; }
  .td-btn { width: 100%; text-align: center; justify-content: center; }
  .td-h1 { font-size: 1.5rem; }
}
