/* =========================================================================
   RealCoupon.in — Stylesheet
   ========================================================================= */

:root {
  --orange: #F4740A;
  --orange-dark: #D9640A;
  --orange-light: #FFF1E6;
  --ink: #1C1C1E;
  --gray-700: #4B4B50;
  --gray-500: #7A7A80;
  --gray-300: #E4E4E7;
  --gray-100: #F7F7F8;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-logo{
  width: 200px;
  height: 50px;
}
/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfcfd2;
  font-size: 12.5px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px; flex-wrap: wrap; gap: 8px;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--gray-300);
  position: sticky; top: 0; background: var(--white); z-index: 50;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.brand-text .name { font-size: 21px; font-weight: 800; line-height: 1; }
.brand-text .name .accent { color: var(--orange); }
.brand-text .tag { font-size: 11.5px; color: var(--gray-500); margin-top: 2px; }

nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--gray-700);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main-nav a.active, nav.main-nav a:hover { color: var(--orange); border-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border: none; font-size: 16px;
}
.btn-getdeals {
  background: var(--orange); color: #fff; padding: 11px 20px;
  border-radius: 10px; font-weight: 700; font-size: 14px; white-space: nowrap;
  border: none;
}
.btn-getdeals:hover { background: var(--orange-dark); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; padding: 0; width: 40px; height: 40px; }

/* mobile search + nav dropdown panels (shared open/close behaviour) */
.mobile-panel { display: none; padding-bottom: 16px; }
.mobile-panel.show { display: block; }
.mobile-panel .search-box { position: relative; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list a {
  padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-list a.btn-getdeals { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; margin: 0 0 16px; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: 16px; color: var(--gray-700); line-height: 1.6; margin: 0 0 26px; max-width: 480px; }

.search-box {
  display: flex; background: #fff; border: 1.5px solid var(--gray-300);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.search-box input {
  flex: 1; border: none; outline: none; padding: 16px 18px; font-size: 15px;
}
.search-box button {
  background: var(--orange); border: none; color: #fff; padding: 0 22px; font-size: 17px;
}
.search-suggest {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--gray-300); border-radius: 12px; margin-top: 8px;
  box-shadow: var(--shadow-md); max-height: 340px; overflow-y: auto; z-index: 40; display: none;
}
.search-suggest.show { display: block; }
.search-suggest a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.search-suggest a:hover { background: var(--gray-100); }
.search-suggest img { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; }
.search-suggest .empty { padding: 16px; color: var(--gray-500); font-size: 14px; }

.trending { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.trending .label { color: var(--gray-700); font-weight: 600; }
.chip {
  border: 1px solid var(--gray-300); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--gray-700); background: #fff;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }

.hero-visual {
  background: radial-gradient(circle at 50% 40%, var(--orange-light), transparent 65%);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  min-height: 300px; font-size: 90px;
}

/* ---------- Section heading ---------- */
.section { padding: 34px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px;
  flex-wrap: wrap; row-gap: 8px; column-gap: 16px;
}
.section-head h2 { font-size: 24px; font-weight: 800; margin: 0; }
.section-head a.viewall { color: var(--orange); font-weight: 700; font-size: 14px; }

/* ---------- Store logo strip ---------- */
.store-strip {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
}
.store-tile {
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  height: 78px; padding: 10px; background: #fff; transition: box-shadow .15s, transform .15s;
}
.store-tile img { max-height: 34px; max-width: 100%; object-fit: contain; }
.store-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-tile { text-align: center; }
.cat-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin: 0 auto 10px; transition: background .15s, transform .15s;
}
.cat-tile:hover .cat-icon { background: var(--orange); transform: translateY(-2px); }
.cat-tile span { font-size: 13.5px; font-weight: 600; color: var(--gray-700); }
.cat-tile small { display: block; font-size: 11.5px; color: var(--gray-500); font-weight: 400; margin-top: 2px; }

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.offer-card {
  min-width: 0; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.offer-store { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offer-store img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.offer-store span { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-badge { font-size: 20px; font-weight: 800; color: var(--orange); line-height: 1.2; }
.offer-title { font-size: 13.5px; color: var(--gray-700); line-height: 1.4; min-height: 36px; }
.offer-coupon-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coupon-code {
  flex: 1 1 100px; min-width: 0; border: 1.5px dashed var(--gray-300); border-radius: 8px; padding: 9px 12px;
  font-weight: 700; letter-spacing: 0.5px; font-size: 13px; background: var(--gray-100);
  text-align: center; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  flex: 0 0 auto;
  border: 1.5px dashed var(--orange); background: var(--orange-light); color: var(--orange-dark);
  border-radius: 8px; padding: 9px 13px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.copy-btn.copied { background: #DCFCE7; border-color: #16A34A; color: #15803D; }
.offer-expiry { font-size: 11.5px; color: var(--gray-500); display: flex; align-items: center; gap: 5px; }
.btn-deal {
  background: var(--orange); color: #fff; text-align: center; padding: 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px; margin-top: 4px; display: block;
}
.btn-deal:hover { background: var(--orange-dark); }

/* ---------- Trust badges ---------- */
.trust-strip {
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 24px;
  border-right: 1px solid var(--gray-300);
}
.trust-item:last-child { border-right: none; }
.trust-item .ic {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.trust-item h4 { margin: 0 0 4px; font-size: 14.5px; }
.trust-item p { margin: 0; font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }

/* ---------- FAQ + Newsletter ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.card-box { border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 26px; }
.card-box h3 { margin: 0 0 18px; font-size: 20px; }
.faq-item { border-bottom: 1px solid var(--gray-300); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-weight: 600; font-size: 14.5px;
}
.faq-q .plus { color: var(--orange); font-size: 18px; transition: transform .15s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; font-size: 13.5px; color: var(--gray-700); }
.faq-item.open .faq-a { max-height: 240px; padding-top: 10px; }

.newsletter-box { background: var(--gray-100); }
.newsletter-box p { color: var(--gray-700); font-size: 14px; margin: 0 0 18px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; border: 1px solid var(--gray-300); border-radius: 8px; padding: 12px 14px; font-size: 14px;
}
.newsletter-form button {
  background: var(--orange); color: #fff; border: none; padding: 0 20px; border-radius: 8px; font-weight: 700;
}
.newsletter-note { font-size: 11.5px; color: var(--gray-500); margin-top: 10px; }

/* ---------- Legal pages (Privacy Policy, Terms) ---------- */
.legal-content h2 { font-size: 17px; margin: 26px 0 8px; }
.legal-content h2:first-of-type { margin-top: 6px; }
.legal-content p { font-size: 14px; line-height: 1.7; color: var(--gray-700); margin: 0 0 4px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #b8b8bd; margin-top: 40px; padding: 20px;}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 28px;
}
.footer-grid h5 { color: #fff; font-size: 14.5px; margin: 0 0 14px; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; background: #2b2b2f;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #333338; padding: 16px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Page header (category/store/search pages) ---------- */
.page-hero { background: var(--gray-100); padding: 34px 0; margin-bottom: 10px; }
.page-hero .crumbs { font-size: 12.5px; color: var(--gray-500); margin-bottom: 8px; }
.page-hero .crumbs a { color: var(--orange); }
.page-hero-row { display: flex; align-items: center; gap: 18px; }
.page-hero-icon {
  width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden;
}
.page-hero-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.page-hero h1 { margin: 0; font-size: 26px; }
.page-hero p { margin: 4px 0 0; color: var(--gray-500); font-size: 13.5px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-row a {
  border: 1px solid var(--gray-300); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600;
}
.filter-row a.active, .filter-row a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.store-card {
  min-width: 0; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 12px; background: #fff;
}
.store-card:hover { box-shadow: var(--shadow-md); }
.store-card img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.store-card div { min-width: 0; }
.store-card .name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card .cats { font-size: 11.5px; color: var(--gray-500); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .big { font-size: 44px; margin-bottom: 12px; }

/* ---------- Store detail page banner ---------- */
.store-banner {
  border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 26px;
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.store-banner img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; }
.store-banner h1 { margin: 0 0 6px; font-size: 22px; }
.store-banner p { margin: 0; color: var(--gray-700); font-size: 13.5px; line-height: 1.5; max-width: 640px; }
.store-banner .visit-btn {
  margin-left: auto; background: var(--orange); color: #fff; padding: 12px 22px;
  border-radius: 10px; font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ---------- Responsive ---------- */

/* Tablets & small laptops */
@media (max-width: 980px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 180px; order: -1; font-size: 64px; }
  .hero h1 { font-size: 34px; }
  .store-strip { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .offer-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-300); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  nav.main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-row { height: auto; min-height: 72px; padding: 8px 0; }
  .brand-logo { width: 40px; height: 40px; font-size: 19px; }
  .brand-text .name { font-size: 18px; }
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .topbar { display: none; } /* saves vertical space; info is repeated in footer */

  .header-actions { gap: 8px; }
  .btn-getdeals { display: none; } /* still available inside the mobile nav panel */
  .icon-btn { width: 38px; height: 38px; }
  .brand { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .brand-text .tag { display: none; }
  .brand-text .name { font-size: 16.5px; }

  .hero { padding: 26px 0 24px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 14.5px; max-width: none; }
  .hero-visual { min-height: 120px; font-size: 48px; }
  .search-box input { padding: 13px 14px; font-size: 14px; }

  .section { padding: 26px 0; }
  .section-head h2 { font-size: 19px; }

  .store-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .store-tile { height: 66px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-icon { width: 50px; height: 50px; font-size: 21px; }

  .offer-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .offer-card { padding: 14px; }
  .offer-badge { font-size: 16px; }

  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .store-banner { padding: 18px; gap: 14px; }
  .store-banner img { width: 58px; height: 58px; }
  .store-banner h1 { font-size: 19px; }
  .store-banner .visit-btn { margin-left: 0; width: 100%; text-align: center; }

  .stores-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .store-card { padding: 12px; }

  .page-hero { padding: 22px 0; }
  .page-hero-icon { width: 50px; height: 50px; font-size: 22px; }
  .page-hero h1 { font-size: 20px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 12px; }

  .filter-row a { padding: 6px 12px; font-size: 12.5px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .store-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 24px; }
}

/* =========================================================================
   Install / "Add to Home Screen" prompt
   ========================================================================= */
.pwa-install-overlay {
  position: fixed; inset: 0; background: rgba(20, 20, 25, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s ease;
  padding: 0;
}
.pwa-install-overlay.show { opacity: 1; pointer-events: auto; }
.pwa-install-card {
  background: #fff; width: 100%; max-width: 420px;
  border-radius: 20px 20px 0 0; padding: 30px 26px 26px; text-align: center;
  position: relative; transform: translateY(40px); transition: transform .28s ease;
  box-shadow: 0 -10px 34px rgba(0,0,0,0.18);
}
.pwa-install-overlay.show .pwa-install-card { transform: translateY(0); }
@media (min-width: 640px) {
  .pwa-install-overlay { align-items: center; padding: 20px; }
  .pwa-install-card { border-radius: 20px; transform: translateY(16px) scale(.98); }
}
.pwa-install-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 24px; line-height: 1; color: var(--gray-500);
}
.pwa-install-close:hover { color: var(--ink); }
.pwa-install-icon {
  width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 16px;
  box-shadow: var(--shadow-md); display: block;
}
.pwa-install-card h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 800; }
.pwa-install-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--gray-700); line-height: 1.55; }
.pwa-install-btn {
  width: 100%; background: var(--orange); color: #fff; border: none;
  padding: 13px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  margin-bottom: 8px;
}
.pwa-install-btn:hover { background: var(--orange-dark); }
.pwa-install-later {
  width: 100%; background: none; border: none; color: var(--gray-500);
  font-size: 13px; font-weight: 600; padding: 6px;
}
.pwa-install-later:hover { color: var(--ink); }
.pwa-ios-steps {
  text-align: left; background: var(--gray-100); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 18px;
}
.pwa-ios-step {
  display: flex; align-items: center; gap: 12px; font-size: 13.5px;
  padding: 7px 0; color: var(--gray-700);
}
.pwa-ios-step i { color: var(--orange); width: 18px; text-align: center; font-size: 15px; }
