/*
Theme Name: Today Coupon Zone
Theme URI: https://example.com/rabatthero
Author: Claude
Author URI: https://claude.ai
Description: A coupon & cashback deals theme for stores and coupon codes, built around Store and Coupon custom post types with a working code modal, sidebar cashback box, and FAQ accordion.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rabatthero
*/

/* ==========================================================================
   0. RESET & BASE
   ========================================================================== */
:root{
  --red: #E1261C;
  --red-dark: #C31D14;
  --black: #1A1A1A;
  --ink: #2B2B2B;
  --grey-600: #374151;
  --grey-400: #4B5563;
  --grey-200: #E5E7EB;
  --grey-100: #F3F4F6;
  --bg: #F7F7F8;
  --white: #FFFFFF;
  --green-bg: #E7F7EE;
  --green-text: #0A5C32;
  --pink-bg: #FDEBEC;
  --pink-text: #7F1D1D;
  --amber-bg: #FDF3DF;
  --amber-text: #6B4A0A;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --maxw: 1180px;

  /* CouponLab homepage palette */
  --teal: #0E3D3B;
  --teal-dark: #0A2B29;
  --gold: #F0A93A;
  --gold-dark: #D9922A;
}

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

body.rabatthero{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   1. TOP BAR + HEADER
   ========================================================================== */
.rh-topbar{
  background: var(--teal-dark);
  color: #cdeee9;
  font-size: 12.5px;
}
.rh-topbar-inner{
  display:flex; justify-content:space-between; align-items:center; height:34px;
}
.rh-topbar-contact span{ margin-right: 18px; }
.rh-topbar-right{ display:flex; align-items:center; gap:16px; }
.rh-social{ display:flex; gap:10px; }
.rh-social a{ opacity:.85; text-transform:uppercase; font-size:11px; }
.rh-topbar-right a{ opacity:.9; }
.rh-topbar-right a:hover{ opacity:1; text-decoration:underline; }

.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  gap: 32px;
  height: 72px;
}
.site-logo{
  display:flex; align-items:center; gap:8px;
  white-space: nowrap;
}
.site-logo-mark{
  width:32px; height:32px; border-radius:8px;
  background: var(--teal); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.site-logo-text{ font-weight:800; font-size:17px; color: var(--teal); line-height:1.1; position:relative; }
.site-logo-text strong{ color: var(--gold-dark); }
.site-logo-text small{ display:block; font-size:8.5px; font-weight:600; color: var(--grey-400); letter-spacing:.02em; }
.primary-nav{ display:flex; gap: 26px; flex:1; list-style:none; justify-content:center; }
.primary-nav li{ margin:0; padding:0; list-style:none; }
.primary-nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.primary-nav a.is-accent{ color: var(--red); }
.primary-nav a:hover{ color: var(--teal); }
.header-search{
  position: relative;
  margin-left: auto;
  width: 220px;
}
.header-search input{
  width:100%;
  padding: 8px 14px 8px 34px;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  background: var(--grey-100);
  font-size: 13px;
}
.header-search svg{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; opacity:.5;
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
.store-page{
  padding: 28px 0 60px;
}
.store-columns{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items:start;
}
.card{
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   3. STORE HERO
   ========================================================================== */
.store-hero{
  padding: 24px;
  margin-bottom: 16px;
}
.store-hero-top{ display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.store-logo-box{
  width:110px; height:110px; border-radius: 16px;
  background: #fff;
  border: 1px solid var(--grey-200);
  display:flex; align-items:center; justify-content:center;
  color: var(--red); font-weight:800; font-size:22px; flex-shrink:0;
  overflow:hidden;
}
.store-logo-box img{ width:100%; height:100%; object-fit:contain; padding:3px; box-sizing:border-box; background:#fff; }
@media (max-width:600px){ .store-logo-box{ width:96px; height:96px; } }
.store-hero-info{ flex:1; min-width:220px; }
.store-hero-info h1{ margin:0 0 6px; font-size:22px; font-weight:800; }
.store-hero-info p{ margin:0; color: var(--grey-600); font-size:14px; max-width: 520px; }
.store-stats{ display:flex; gap:10px; flex-wrap:wrap; }
.stat-pill{
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width:82px;
  text-align:center;
}
.stat-pill .num{ display:block; font-weight:800; font-size:15px; }
.stat-pill .label{ display:block; font-size:10.5px; color:var(--grey-600); margin-top:2px; }
.stat-pill.green{ background: var(--green-bg); }
.stat-pill.green .num{ color: var(--green-text); }
.stat-pill.pink{ background: var(--pink-bg); }
.stat-pill.pink .num{ color: var(--pink-text); }
.stat-pill.neutral{ background: var(--grey-100); }

.store-hero-info h2{ margin:0 0 6px; font-size:22px; font-weight:800; }
.store-result-card{ display:block; text-decoration:none; color:inherit; }
.store-result-card--plain{ padding:20px 24px; }
.store-result-card--plain h2{ margin:0 0 6px; font-size:17px; font-weight:800; }
.store-result-card--plain p{ margin:0; color: var(--grey-600); font-size:14px; }
.store-results-list{ margin-top:4px; }

.store-banner{
  margin-top:16px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 13px;
  font-weight:600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.store-results-list{ display:flex; flex-direction:column; }
.store-result-card{
  display:block;
  text-decoration:none;
  color:inherit;
  border-color: var(--grey-200);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.store-result-card:hover{
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.store-hero-info h2{ margin:0 0 6px; font-size:22px; font-weight:800; }

/* ==========================================================================
   4. FILTER TABS
   ========================================================================== */
.coupon-filters{
  display:flex; gap:8px; margin: 18px 0 14px;
}
.coupon-filters button{
  border:1px solid var(--grey-200);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight:600;
  color: var(--grey-600);
}
.coupon-filters button.is-active[data-state="verified"]{ background: var(--green-bg); color: var(--green-text); border-color: transparent; }
.coupon-filters button.is-active[data-state="active"]{ background: var(--grey-100); color: var(--ink); }
.coupon-filters button.is-active[data-state="inactive"]{ background: var(--grey-100); color: var(--grey-600); }

/* ==========================================================================
   5. COUPON CARDS
   ========================================================================== */
.coupon-card{
  padding: 20px;
  margin-bottom: 14px;
}
.coupon-card.is-expired{ opacity:.55; }
.coupon-row{ display:flex; gap:16px; align-items:flex-start; }
.coupon-icon{
  width:40px; height:40px; border-radius:8px;
  background: #fff;
  border: 1px solid var(--grey-200);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.coupon-icon svg{ width:18px; height:18px; color: var(--red); }
.coupon-icon img{ width:100%; height:100%; object-fit:contain; border-radius:8px; }
.rh-fallback-letter{ font-weight:700; font-size:16px; color: var(--red); text-transform:uppercase; }
.coupon-body{ flex:1; min-width:0; }
.coupon-title-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.coupon-title-row h3{ margin:0; font-size:15.5px; font-weight:700; }
.badge{
  font-size: 10.5px;
  font-weight:700;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge.verified{ background: var(--green-bg); color: var(--green-text); }
.badge.exclusive{ background: var(--black); color:#fff; }
.badge.new{ background: var(--pink-bg); color: var(--pink-text); }
.badge.ending{ background: var(--amber-bg); color: var(--amber-text); }
.coupon-desc{ margin: 6px 0 0; color: var(--grey-600); font-size: 13.5px; display:none; }
.coupon-card.is-open .coupon-desc{ display:block; }
.coupon-meta{ margin: 8px 0 0; font-size:12.5px; color: var(--grey-600); font-weight:500; }
.coupon-meta span{ margin-right: 10px; }
.coupon-meta .cashback{ color: var(--green-text); font-weight:600; }
.coupon-more{
  margin-top: 10px;
  font-size: 12.5px;
  font-weight:600;
  color: var(--grey-600);
  display:flex; align-items:center; gap:4px;
  background:none; border:none; padding:0;
  cursor:pointer;
}
.coupon-card.is-open .coupon-more svg{ transform: rotate(180deg); }
.coupon-more svg{ transition: transform .15s; }
.coupon-right{ text-align:right; flex-shrink:0; }
.coupon-discount{ font-size: 24px; font-weight:800; color: var(--red); line-height:1; }
.coupon-discount small{ display:block; font-size:10px; font-weight:700; color: var(--grey-400); margin-top:2px; }
.btn{
  display:inline-block;
  margin-top:10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size:13px;
  font-weight:700;
  border: none;
}
.btn.btn-red{ background: var(--red); color:#fff; }
.btn.btn-black{ background: var(--black); color:#fff; }
.btn.btn-outline{ background: var(--white); color: var(--ink); border:1px solid var(--grey-200); }
.coupon-card.is-expired .btn{ background: var(--grey-200); color: var(--grey-600); border-color: var(--grey-200); }
.coupon-card.is-expired .btn.is-code{ background:#FBE7E5; color:#B23327; border-color:#F3C9C6; }
.coupon-card.is-expired .btn.is-deal{ background: var(--grey-200); color: var(--grey-600); border-color: var(--grey-200); }

.section-label{
  font-size: 13px;
  font-weight:700;
  color: var(--grey-600);
  margin: 26px 0 12px;
}

/* sponsored row */
.sponsored-row{
  display:flex; align-items:center; gap:14px;
  padding: 16px 20px; margin-bottom: 20px;
}
.sponsored-tag{ font-size:10px; color: var(--grey-400); position:absolute; }
.sponsored-thumb{ width:44px; height:44px; border-radius:8px; background: var(--black); flex-shrink:0; }
.sponsored-row .coupon-body{ flex:1; }
.sponsored-row h3{ margin:0 0 3px; font-size:14.5px; }
.sponsored-row p{ margin:0; font-size:13px; color: var(--grey-600); }

/* ==========================================================================
   6. SIDEBAR
   ========================================================================== */
.sidebar > .card{ padding: 18px; margin-bottom: 16px; }
.cashback-box{
  border: 1px solid #F0D48A;
  background: #FFFCF4;
  position:relative;
}
.cashback-box .tag{
  position:absolute; top:14px; right:14px;
  background: var(--amber-text); color:#fff;
  font-size:10px; font-weight:700; padding:2px 8px; border-radius:999px;
}
.cashback-box .amount{ font-size: 26px; font-weight:800; color: var(--red); margin: 6px 0 4px; }
.cashback-box p{ font-size:12.5px; color: var(--grey-600); margin:0 0 14px; }
.cashback-box .btn{ width:100%; text-align:center; margin-top:0; }

.notify-box h4, .about-box h4, .popular-cats h4{
  margin:0 0 10px; font-size:14px; font-weight:700;
}
.notify-box p{ font-size:12.5px; color:var(--grey-600); margin:0 0 12px; }
.notify-box .btn{ width:100%; text-align:center; margin-top:0; }

.cat-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.cat-tags a{
  font-size:12px; background: var(--grey-100); border-radius:999px;
  padding: 6px 12px; color: var(--ink);
}

.about-box p{ font-size:12.5px; color: var(--grey-600); margin:0 0 10px; }
.about-box .meta-line{ font-size:12px; color: var(--grey-600); margin-bottom:4px; }
.about-box .legal-link{ font-size:12px; color: var(--red); font-weight:600; }

/* ==========================================================================
   7. SIMILAR STORES
   ========================================================================== */
.similar-stores{ margin-top: 30px; }
.similar-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-top:12px;
}
.similar-grid a{
  background: var(--white); border:1px solid var(--grey-200); border-radius: var(--radius);
  padding: 22px 10px; text-align:center; font-weight:700; font-size:13px;
}
.similar-grid .logo-mark{ height:26px; width:auto; max-width:60px; margin: 0 auto 10px; display:flex; align-items:center; justify-content:center; font-weight:800; object-fit:contain; }
.rh-store-logo{ height:30px; margin:0 auto 8px; display:flex; align-items:center; justify-content:center; }
.rh-store-logo img{ height:30px; width:auto; max-width:70px; object-fit:contain; }

/* ==========================================================================
   8. CONTENT / SEO SECTIONS
   ========================================================================== */
.store-content{ margin-top: 40px; max-width: 760px; }
.store-content h1{ font-size:26px; font-weight:800; margin: 0 0 10px; line-height:1.25; }
.store-content h2{ font-size:19px; font-weight:800; margin: 30px 0 10px; }
.store-content h2:first-child{ margin-top:0; }
.store-content p{ font-size:14px; color: var(--grey-600); margin: 0 0 12px; }
.store-content a{ color: var(--red); font-weight:600; }
.store-content .entry-content{ margin-top: 14px; }
.store-content .entry-content img{ border-radius: var(--radius-sm); margin: 12px 0; }

/* Store page: help article (coupon not working) */
.rh-help-article{ border-top:1px solid var(--grey-200); padding-top:28px; }
.rh-help-article h3{ font-size:15.5px; font-weight:800; margin:22px 0 6px; color: var(--ink); line-height:1.35; }
.rh-help-article ul{ margin:0 0 12px 20px; padding:0; list-style:disc; }
.rh-help-article li{ font-size:14px; color: var(--grey-600); margin-bottom:6px; }
.rh-help-article .rh-help-note{ font-size:12.5px; color: var(--grey-400); border-left:3px solid var(--grey-200); padding-left:12px; margin-top:22px; }

/* Sidebar: How to use a coupon code */
.howto-box h3{ margin:0 0 14px; }
.howto-box ol{ list-style:none; counter-reset: rh-step; margin:0; padding:0; }
.howto-box li{ counter-increment: rh-step; position:relative; padding-left:30px; margin:0 0 12px; font-size:12.5px; line-height:1.5; color: var(--grey-600); }
.howto-box li:last-child{ margin-bottom:0; }
.howto-box li::before{
  content: counter(rh-step); position:absolute; left:0; top:0;
  width:20px; height:20px; border-radius:50%;
  background: var(--red); color:#fff; font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.howto-box li strong{ color: var(--ink); }
.howto-box .howto-tip{ margin:14px 0 0; padding-top:12px; border-top:1px solid var(--grey-200); font-size:12px; line-height:1.5; color: var(--grey-600); }
.howto-box .howto-tip a{ color: var(--red); font-weight:600; white-space:nowrap; }

.faq-item{ border-bottom: 1px solid var(--grey-200); }
.faq-question{
  width:100%; text-align:left; background:none; border:none;
  padding: 14px 0; font-size:14px; font-weight:600;
  display:flex; justify-content:space-between; align-items:center;
}
.faq-answer{ display:none; padding: 0 0 14px; font-size:13.5px; color: var(--grey-600); }
.faq-item.is-open .faq-answer{ display:block; }
.faq-item.is-open .faq-question svg{ transform: rotate(180deg); }
.faq-question svg{ width:14px; height:14px; transition: transform .15s; flex-shrink:0; }

.related-box{
  background: var(--white); border:1px solid var(--grey-200); border-radius: var(--radius);
  padding: 20px; margin-top: 30px;
}
.related-box h4{ margin:0 0 12px; font-size:14px; font-weight:700; }
.related-cols{ display:grid; grid-template-columns:1fr 1fr; gap: 6px 20px; }
.related-cols a{ display:block; padding: 4px 0; font-size:13px; color: var(--ink); }
.related-cols a:hover{ color: var(--red); }

/* ==========================================================================
   9. COUPON CODE MODAL
   ========================================================================== */
.rh-modal-overlay{
  position: fixed; inset:0; background: rgba(20,20,20,.55);
  display:none; align-items:center; justify-content:center; z-index: 9999; padding: 16px;
}
.rh-modal-overlay.is-open{ display:flex; }
.rh-modal{
  background:#fff; border-radius: 14px; width: 100%; max-width: 360px;
  padding: 22px; position:relative;
}
.rh-modal-close{
  position:absolute; top:14px; right:14px; background:none; border:none; font-size:16px; color: var(--grey-400);
}
.rh-modal h3{ margin:0 0 4px; font-size:15px; }
.rh-modal p.desc{ margin:0 0 16px; font-size:13px; color: var(--grey-600); }
.rh-code-box{
  border: 2px dashed var(--red);
  background: var(--pink-bg);
  border-radius: 10px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px; margin-bottom:14px;
}
.rh-code-box .code{ font-size:18px; font-weight:800; color: var(--red); letter-spacing: 1px; }
.rh-code-box button{ background:none; border:none; color: var(--red); }
.rh-cashback-note{
  display:flex; gap:10px; align-items:flex-start;
  background: var(--amber-bg); border-radius:8px; padding:10px 12px; margin-bottom:16px;
}
.rh-cashback-note strong{ display:block; font-size:12.5px; }
.rh-cashback-note span{ font-size:11.5px; color: var(--grey-600); }
.rh-modal .btn.btn-red{ width:100%; text-align:center; margin-top:0; }
.rh-feedback{ text-align:center; margin-top:14px; }
.rh-feedback p{ font-size:12px; color: var(--grey-600); margin:0 0 8px; }
.rh-feedback-btns{ display:flex; gap:8px; justify-content:center; }
.rh-feedback-btns button{
  flex:1; border:1px solid var(--grey-200); background:#fff; border-radius:8px;
  padding: 7px 0; font-size:12.5px;
}
.rh-modal .footnote{ font-size:10.5px; color: var(--grey-400); text-align:center; margin-top:12px; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer{
  background: var(--teal-dark); color: #a9c9c5; padding: 40px 0 20px; margin-top: 50px; font-size:13px;
}
.site-footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.site-footer a{ color:#a9c9c5; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.site-footer ul li a{ display:inline-block; padding:9px 0; }
.site-footer .copyright{ width:100%; border-top:1px solid #1c4a47; margin-top:20px; padding-top:16px; color:#7fa39f; font-size:12px; }

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px){
  .store-columns{ grid-template-columns: 1fr; }
  .primary-nav{ display:none; }
  .header-search{ width: 160px; }
}
@media (max-width: 600px){
  .similar-grid{ grid-template-columns: repeat(2,1fr); }
  .related-cols{ grid-template-columns: 1fr; }
  .coupon-row{ flex-wrap:wrap; }
  .coupon-right{ text-align:left; width:100%; }
}

/* ==========================================================================
   12. HOMEPAGE (front-page.php)
   ========================================================================== */

/* -- Hero -- */
.rh-hero{
  background: radial-gradient(circle at 85% 18%, rgba(240,169,58,.28) 0, rgba(240,169,58,0) 42%), radial-gradient(circle at 8% 92%, rgba(46,160,140,.30) 0, rgba(46,160,140,0) 46%), linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.rh-hero .wrap{
  display:grid; grid-template-columns: 1fr 420px; gap: 30px; align-items:center;
  padding: 60px 20px;
}
.rh-hero h1{ font-size: 34px; font-weight:800; line-height:1.2; margin:0 0 18px; max-width: 480px; }
.rh-hero-bullets{ display:flex; flex-direction:column; gap:8px; }
.rh-hero-bullets li{ display:flex; gap:8px; align-items:flex-start; font-size:13.5px; color:#d7ece9; }
.rh-hero-bullets li::before{ content:"✓"; color: var(--gold); font-weight:800; }
.rh-hero-art{
  position:relative; width:100%; aspect-ratio:1/1; max-width:380px; margin:0 auto;
}
.rh-hero-art svg{ width:100%; height:100%; }
.rh-hero-art img{ width:100%; height:100%; border-radius:50%; object-fit:cover; object-position:top center; display:block; border:3px solid var(--gold); }

/* -- Hero polish -- */
.rh-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.7;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.rh-hero .wrap{ position:relative; z-index:1; }
.rh-hero-eyebrow{
  display:inline-block; margin-bottom:16px; padding:6px 14px; border-radius:999px;
  background: rgba(240,169,58,.16); color: var(--gold); border:1px solid rgba(240,169,58,.45);
  font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
}
.rh-hero h1{ font-size:40px; line-height:1.15; letter-spacing:-.01em; margin:0 0 14px; max-width:520px; }
.rh-hero-sub{ font-size:16px; line-height:1.55; color:#cfe8e4; margin:0 0 24px; max-width:480px; }
.rh-hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.rh-hero-btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:46px;
  padding:13px 26px; border-radius:999px; font-weight:800; font-size:14.5px;
  transition: transform .15s ease, background .15s ease;
}
.rh-hero-btn--primary{ background: var(--gold); color:#3a2a05; box-shadow:0 8px 22px rgba(240,169,58,.35); }
.rh-hero-btn--primary:hover{ background: var(--gold-dark); transform: translateY(-2px); }
.rh-hero-btn--ghost{ border:1.5px solid rgba(255,255,255,.4); color:#fff; }
.rh-hero-btn--ghost:hover{ background: rgba(255,255,255,.1); }
.rh-hero-trust{ display:flex; flex-wrap:wrap; gap:10px 18px; font-size:13px; font-weight:600; color:#cfe8e4; }
.rh-hero-trust span::before{ content:"✓"; color: var(--gold); font-weight:800; margin-right:6px; }
.rh-hero-art::before{
  content:""; position:absolute; inset:-14px; border-radius:50%; z-index:0;
  background: radial-gradient(circle, rgba(240,169,58,.35) 0, rgba(240,169,58,0) 70%);
}
.rh-hero-art img{ position:relative; z-index:1; box-shadow:0 18px 50px rgba(0,0,0,.35); }
@media (max-width: 980px){
  /* Mobile/tablet: heading on the left, round image on the right */
  section.rh-hero .wrap{
    grid-template-columns: 1fr clamp(110px, 24vw, 190px);
    column-gap:16px; row-gap:0; align-items:center; text-align:left; padding:32px 20px 40px;
  }
  section.rh-hero .wrap > div:first-child{ display:contents; }
  section.rh-hero .rh-hero-eyebrow{ grid-column:1; grid-row:1; justify-self:start; align-self:end; margin-bottom:12px; }
  section.rh-hero .wrap h1{ grid-column:1; grid-row:2; align-self:start; font-size:22px; line-height:1.2; margin:0 0 18px; max-width:none; }
  section.rh-hero .wrap{ grid-template-columns: 1fr clamp(100px, 26vw, 180px); }
  section.rh-hero .rh-hero-art{ grid-column:2; grid-row:1 / span 5; align-self:center; order:0; max-width:none; width:100%; margin:0; }
  section.rh-hero .rh-hero-sub,
  section.rh-hero .rh-hero-cta,
  section.rh-hero .rh-hero-trust,
  section.rh-hero .rh-hero-bullets{ grid-column:1; max-width:none; }
  section.rh-hero .rh-hero-sub{ grid-row:3; }
  section.rh-hero .rh-hero-cta{ grid-row:4; }
  section.rh-hero .rh-hero-trust{ grid-row:5; }
  section.rh-hero .rh-hero-sub{ font-size:15px; }
  section.rh-hero .rh-hero-cta, section.rh-hero .rh-hero-trust{ justify-content:flex-start; }
}
@media (max-width: 680px){
  .rh-hero-btn{ flex:1 1 140px; padding:12px 18px; }
  section.rh-hero .wrap h1{ font-size:20px; }
}

/* -- Top Category row -- */
.rh-category-strip{ background: var(--teal-dark); padding: 22px 0; }
.rh-category-strip .wrap{ display:flex; align-items:center; gap:22px; }
.rh-category-strip .label{ color:#cdeee9; font-weight:600; font-size:14px; flex-shrink:0; }
.rh-category-list{ display:flex; gap:12px; overflow-x:auto; flex:1; }
.rh-category-pill{
  background: rgba(255,255,255,.08); border-radius:8px; padding: 10px 20px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:#fff; font-size:12.5px; min-width:80px; flex-shrink:0;
}
.rh-category-pill .icon{ font-size:18px; }
.rh-category-pill:hover{ background: rgba(255,255,255,.16); }

/* -- Section heading row (shared by deal sections) -- */
.rh-section{ padding: 44px 0; }
.rh-section.is-tinted{ background: var(--grey-100); }
.rh-section-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.rh-section-head h2{ margin:0; font-size:21px; font-weight:800; }
.rh-view-all{
  background: var(--teal); color:#fff; font-size:12.5px; font-weight:700;
  padding: 8px 16px; border-radius: 999px;
}
.rh-view-all:hover{ background: var(--teal-dark); }

/* -- Deal card grid -- */
.rh-deal-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.rh-deal-card{
  background:#fff; border:1px solid var(--grey-200); border-radius: var(--radius);
  overflow:hidden;
}
.rh-deal-thumb{ position:relative; aspect-ratio: 4/3; background: #fff; overflow:hidden; }
.rh-deal-thumb img{ width:100%; height:100%; object-fit:cover; }
.rh-deal-thumb .rh-badge{
  position:absolute; top:8px; left:8px;
  background: var(--gold); color: #3a2a05; font-size:10px; font-weight:800;
  padding: 3px 9px; border-radius:999px;
}
.rh-deal-body{ padding: 12px 14px 16px; }
.rh-deal-store{ font-size:11.5px; color: var(--teal); font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.rh-deal-title{ font-size:13.5px; font-weight:700; margin: 4px 0 6px; line-height:1.3; }
.rh-deal-meta{ font-size:11.5px; color: var(--grey-400); }
.rh-deal-countdown{ font-size:11.5px; color: var(--red); font-weight:700; margin-top:4px; }

/* -- Ad banner -- */
.rh-ad-banner{ margin: 30px 0; text-align:center; }
.rh-ad-banner img{ margin:0 auto; border-radius: var(--radius-sm); }

/* -- Popular Store row -- */
.rh-store-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap:16px; }
.rh-store-card{
  background:#fff; border:1px solid var(--grey-200); border-radius: var(--radius);
  padding: 22px 10px; text-align:center;
}
.rh-store-card .mark{ font-weight:800; font-size:17px; color: var(--teal); margin-bottom:14px; }
.rh-store-card .pct{ font-size:16px; font-weight:800; color: var(--ink); }
.rh-store-card .pct-label{ font-size:10.5px; color: var(--grey-400); margin-top:2px; }

/* -- Testimonials -- */
.rh-testimonials{ background: var(--teal-dark); color:#fff; padding: 48px 0; }
.rh-testimonials .wrap{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items:start; }
.rh-testimonials h2{ font-size:24px; font-weight:800; margin:0 0 10px; }
.rh-testimonials p.lead{ font-size:13.5px; color:#a9c9c5; margin:0 0 20px; max-width:280px; }
.rh-testimonials .wrap > div:first-child{ grid-row: 1 / span 3; }
.rh-stats{ display:flex; gap: 26px; }
.rh-stats .num{ font-size:20px; font-weight:800; color: var(--gold); }
.rh-stats .label{ font-size:11px; color:#a9c9c5; margin-top:2px; }
.rh-quote-card{
  background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 20px;
}
.rh-quote-card .mark{ color: var(--gold); font-size:20px; }
.rh-quote-card p{ font-size:13px; color:#d7ece9; margin: 8px 0 14px; }
.rh-quote-card .author{ font-weight:700; font-size:13px; color:#fff; }
.rh-quote-card .role{ font-size:11.5px; color:#a9c9c5; }

/* -- Recent Posts -- */
.rh-post-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.rh-post-card{ background:#fff; border:1px solid var(--grey-200); border-radius: var(--radius); overflow:hidden; }
.rh-post-thumb{ aspect-ratio: 16/10; background: var(--grey-200); overflow:hidden; }
.rh-post-thumb img{ width:100%; height:100%; object-fit:cover; }
.rh-post-body{ padding: 14px 16px 18px; }
.rh-post-date{ font-size:11px; color: var(--grey-400); }
.rh-post-title{ font-size:14.5px; font-weight:700; margin: 6px 0 8px; line-height:1.35; }
.rh-post-title a{ color: var(--ink); }
.rh-post-title a:hover{ color: var(--teal); }
.rh-post-excerpt{ font-size:12.5px; color: var(--grey-600); margin:0 0 10px; }
.rh-read-more{ font-size:12.5px; font-weight:700; color: var(--teal); }

/* -- Homepage responsive -- */
@media (max-width: 980px){
  .rh-deal-grid{ grid-template-columns: repeat(2,1fr); }
  .rh-store-grid{ grid-template-columns: repeat(2,1fr); }
  .rh-testimonials .wrap{ grid-template-columns: 1fr; }
.rh-testimonials .wrap > div:first-child{ grid-row: auto; }
  .rh-post-grid{ grid-template-columns: 1fr; }
  .rh-hero .wrap{ grid-template-columns: 1fr; }
  .rh-hero-art{ order:-1; max-width:260px; }
}
@media (max-width: 680px){
  .rh-topbar-contact span:last-child{ display:none; }
  .rh-deal-grid{ grid-template-columns: 1fr 1fr; }
  .rh-store-grid{ grid-template-columns: repeat(2,1fr); }
  .rh-hero h1{ font-size:26px; }
}
