/* =========================================================
   FashionCouponLab.com — Design Tokens
   ========================================================= */
:root {
  --brand: #D81B60;
  --brand-dark: #A6134A;
  --brand-light: #FCE4EC;
  --bg-soft: #f7f6f1;
  --text-dark: #1f2420;
  --text-muted: #6b7268;
  --border-soft: #e7e5df;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 10px rgba(20, 30, 20, 0.05);
  --shadow-card-hover: 0 10px 24px rgba(20, 30, 20, 0.10);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  transition: all .15s ease;
}
.btn-brand:hover { background: #d32566; border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand {
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
}
.btn-outline-brand:hover { border-color: var(--brand); color: var(--brand); }

/* =========================================================
   "Get Code" ribbon button — folded-corner coupon style
   ========================================================= */
/* .get-code-btn {
  position: relative;
  border: none;
  border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  background-color: var(--brand);
  background-image: radial-gradient(circle at calc(100% - 7px) 9px, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 65%);
  background-repeat: no-repeat;
}
.get-code-btn:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
} */
.get-code-btn {
    position: relative;

    background: var(--brand);
    border: none;

    color: #fff;
    font-weight: 600;

    border-radius: var(--radius-sm);

    padding: 0.55rem 1.1rem;

    overflow: visible;

    transition: all .15s ease;
}


/* only Get Code ribbon */
.get-code-btn.has-ribbon::after {
    content: "";

    position: absolute;

    height: 0;
    width: 0;

    right: -1px;
    top: -1px;

    border-style: solid;
    border-width: 8px;

    border-top-color: #fff;
    border-right-color: #fff;

    border-bottom-color: #af154d;
    border-left-color: #af154d;

    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;

    transition: all .1s ease-in;
}


/* hover peel */
.get-code-btn.has-ribbon:hover::after {
    border-width: 10px;
}




.get-code-btn.btn-sm {
  border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  background-image: radial-gradient(circle at calc(100% - 5px) 6px, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 65%);
}

/* =========================================================
   Announcement bar
   ========================================================= */
.announce-bar {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.announce-close {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: var(--brand-dark);
  opacity: .6;
}
.announce-close:hover { opacity: 1; }

/* =========================================================
   Header / Navbar
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar { padding: 0.85rem 0; }
.navbar-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .navbar-brand { font-size: 0.98rem; gap: 0.35rem; }
}
.brand-icon {
  color: var(--brand);
  font-size: 1.3rem;
  display: inline-flex;
}
.brand-logo-img { height: 34px; width: auto; max-width: 100%; display: block; }
@media (max-width: 400px) {
  .brand-logo-img { height: 28px; }
}
.footer-brand { display: inline-block; }
.footer-logo-img { height: 32px; width: auto; max-width: 100%; display: block; }
.footer-social { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-dark, #212529);
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-light, #fbeaf1);
  color: var(--brand, #e91e63);
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.footer-social-link:hover .footer-social-icon { background: var(--brand, #e91e63); color: #fff; }
.footer-social-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-social-text .platform { font-size: 0.85rem; font-weight: 600; }
.footer-social-text .handle { font-size: 0.78rem; color: var(--text-muted, #6c757d); }
.footer-social-link:hover .footer-social-text .platform { color: var(--brand, #e91e63); }
.main-nav { gap: 0.35rem; }
.main-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 2px solid transparent;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--brand); }
.main-nav .nav-link.active { border-bottom-color: var(--brand); font-weight: 600; }

.nav-search {
  background: var(--bg-soft);
  border-radius: 30px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  align-items: center;
  min-width: 300px;
}
.nav-search input {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  box-shadow: none;
}
.nav-search input:focus { box-shadow: none; }
.nav-search button {
  background: var(--brand);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb-bar { padding: 0.9rem 0; font-size: 0.85rem; }
.breadcrumb-nav { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--brand); }
.breadcrumb-nav .current { color: var(--text-dark); font-weight: 500; }
.breadcrumb-nav i { font-size: 0.7rem; }

/* =========================================================
   Trust bar / Newsletter / Footer
   ========================================================= */
.trust-bar { background: var(--bg-soft); padding: 1.75rem 0; margin-top: 2.5rem; }
.trust-icon { font-size: 1.6rem; color: var(--brand); }

.newsletter-bar { background: var(--brand-light); padding: 2.25rem 0; position: relative; overflow: hidden; }
.newsletter-bar input { border-radius: var(--radius-sm); border: 1px solid var(--border-soft); padding: 0.6rem 1rem; }
.newsletter-leaf {
  position: absolute; left: -40px; bottom: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(47,111,62,0.16), transparent 60%),
              radial-gradient(circle at 65% 70%, rgba(47,111,62,0.10), transparent 55%);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter-simple-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}

.site-footer { background: #fff; padding: 3rem 0 1.5rem; }
.footer-heading { font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand); }
.footer-divider { border-color: var(--border-soft); margin: 2rem 0 1.25rem; }
/* Social-links / payment-icon styles removed — those sections no longer
   exist in footer.php (social links removed, "We Accept" section removed
   per current requirements). */

/* =========================================================
   Page hero (categories / stores / category-details)
   ========================================================= */
.page-hero {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
  position: relative;
}
.page-hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}
.page-hero h1 { font-weight: 800; font-size: 2.5rem; margin-bottom: 0.25rem; }
.page-hero .subtitle { color: var(--brand); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.75rem; }
.page-hero p.desc { color: var(--text-muted); max-width: 460px; }
.page-hero-img {
  border-radius: var(--radius-md);
  height: 280px;
  width: 100%;
  object-fit: cover;
}
.stats-bar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.stats-bar .stat-item { display: flex; align-items: center; gap: 0.75rem; }
.stats-bar .stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  flex-shrink: 0;
}
.stats-bar .stat-value { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.stats-bar .stat-label { color: var(--text-muted); font-size: 0.82rem; }

/* =========================================================
   Category card / grid
   ========================================================= */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all .18s ease;
  height: 100%;
}
.category-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: transparent; }
.category-icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem;
}
.icon-pink { background: #fbe4ec; color: #d6488c; }
.icon-rose { background: #fbe4ec; color: #d6487a; }
.icon-blue { background: #e2edfb; color: #3a76c4; }
.icon-green { background: var(--brand-light); color: var(--brand); }
.icon-red { background: #fbe4e4; color: #c94747; }
.icon-sky { background: #e2f1fb; color: #3a9cc4; }
.icon-orange { background: #fdeade; color: #d68a3a; }
.icon-teal { background: #e0f2ef; color: #2f9184; }
.icon-brown { background: #f0e6dd; color: #8a5a34; }
.icon-gray { background: #eceeec; color: #555; }
.icon-indigo { background: #e8e6fb; color: #6355c9; }
.icon-purple { background: #ece4fb; color: #7c47c9; }
.category-card-name { font-weight: 700; margin-bottom: 0.3rem; font-size: 1.05rem; }
.category-card-stores { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.category-card-discount { color: var(--brand); font-weight: 600; font-size: 0.88rem; }

/* Categories sidebar */
.category-sidebar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
}
.category-sidebar-header {
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-sidebar .cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}
.category-sidebar .cat-link i.cat-ico { color: var(--text-muted); margin-right: 0.5rem; }
.category-sidebar .cat-link .count { color: var(--text-muted); font-size: 0.82rem; }
.category-sidebar .cat-link:hover,
.category-sidebar .cat-link.active { background: var(--brand-light); color: var(--brand); border-left-color: var(--brand); }
.category-sidebar .cat-link.active .count { color: var(--brand); }
.category-sidebar-footer { padding: 0.9rem 1.25rem; }

/* =========================================================
   Store card / grid (logo-based)
   ========================================================= */
.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  height: 100%;
  transition: all .18s ease;
}
.store-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.store-card-logo { height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; overflow: hidden; }
.store-card-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.store-card-coupons { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.store-card-discount { color: var(--brand); font-weight: 600; font-size: 0.85rem; }

/* =========================================================
   Logo mark (generic text-based brand marks)
   ========================================================= */
.logo-mark {
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-sm { font-size: 0.95rem; }
.logo-md { font-size: 1.3rem; }
.logo-lg { font-size: 1.6rem; }
.logo-mark-img { width: 100%; height: 100%; overflow: hidden; }
.logo-mark-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-style-swoosh { font-style: italic; letter-spacing: -0.5px; }
.logo-style-text-serif { font-family: Georgia, serif; letter-spacing: 1px; }
.logo-style-text-bold { font-weight: 900; }
.logo-style-text-spaced { letter-spacing: 2px; font-weight: 700; }
.logo-style-text-italic { font-style: italic; font-weight: 900; }
.logo-style-text-small { font-size: 0.75em; font-weight: 800; letter-spacing: 0.5px; }
.logo-style-text-lower { text-transform: lowercase; font-weight: 700; }
.logo-style-text-script { font-family: 'Brush Script MT', cursive; font-style: italic; }
.logo-style-text-script-red { font-family: 'Brush Script MT', cursive; font-style: italic; color: #c0392b; }
.logo-style-text-blue { color: #1428a0; font-weight: 800; }
.logo-style-text-blue-star { color: #0071ce; font-weight: 700; }
.logo-style-badge-red {
  background: #c0392b; color: #fff; font-size: 0.65em; padding: 2px 6px; border-radius: 3px; font-weight: 700;
}
.logo-style-badge-outline {
  border: 2px solid var(--text-dark); border-radius: 50%; width: 1.8em; height: 1.8em;
  display: flex; align-items: center; justify-content: center; font-size: 0.8em;
}
.logo-style-badge-circle {
  border: 2px solid var(--text-dark); border-radius: 50%; width: 1.8em; height: 1.8em;
  display: flex; align-items: center; justify-content: center; font-size: 0.7em;
}
.logo-style-icon { font-family: -apple-system, sans-serif; }
.logo-style-icon i { font-size: 1.4em; }

/* =========================================================
   Filters bar (Stores page)
   ========================================================= */
.filters-bar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
}
.filters-bar .form-select,
.filters-bar .form-control { border-radius: var(--radius-sm); border-color: var(--border-soft); font-size: 0.9rem; }
.search-input-icon { position: relative; }
.search-input-icon i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* =========================================================
   Live search (Requirements 11 & 17)
   ========================================================= */
.search-live-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
  text-align: left;
}
.search-live-results.show { display: block; }
.search-live-results .slr-section-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); padding: 0.6rem 1rem 0.3rem;
}
.search-live-results .slr-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 1rem; color: var(--text-dark); text-decoration: none;
}
.search-live-results .slr-item:hover { background: var(--bg-soft); }
.search-live-results .slr-logo {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px;
  border: 1px solid var(--border-soft); display: flex; align-items: center;
  justify-content: center; overflow: hidden; font-size: 0.65rem; font-weight: 700;
}
.search-live-results .slr-logo img { width: 100%; height: 100%; object-fit: contain; }
.search-live-results .slr-name { font-size: 0.88rem; font-weight: 600; }
.search-live-results .slr-meta { font-size: 0.75rem; color: var(--text-muted); }
.search-live-results .slr-empty, .search-live-results .slr-loading {
  padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
#storesGrid[data-loading="1"] { opacity: 0.5; pointer-events: none; transition: opacity 0.15s; }

/* =========================================================
   Sidebar filter panels (Coupons page)
   ========================================================= */
.filter-panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.filter-panel h5 { font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.filter-panel .cat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0; font-size: 0.9rem; color: var(--text-dark);
}
.filter-panel .cat-row.active { color: var(--brand); font-weight: 600; }
.filter-panel .cat-row .count { color: var(--text-muted); font-size: 0.8rem; }
.filter-panel .cat-row.active .count { color: var(--brand); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* =========================================================
   Coupon card (Coupons listing style — code box on right)
   ========================================================= */
.coupon-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  position: relative;
}
.coupon-wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
}
.coupon-wishlist-btn:hover { color: #d6487a; }
.coupon-wishlist-btn.active i { color: #d6487a; }
.coupon-card-left { display: flex; gap: 1.1rem; flex: 1 1 320px; min-width: 260px; }
.coupon-logo {
  width: 84px; height: 84px; flex-shrink: 0;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.badge-pill {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.4rem;
}
.badge-pill.badge-amber { background: #fdeade; color: #b8691d; }
.coupon-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.coupon-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.5rem; }
.coupon-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.coupon-card-right { display: flex; flex-direction: column; gap: 0.5rem; width: 220px; flex-shrink: 0; margin-left: auto; }
.coupon-code-box {
  border: 1.5px dashed var(--brand);
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.8rem;
}
.code-text { font-weight: 700; letter-spacing: 1px; color: var(--brand-dark); font-size: 0.9rem; }
.code-copy-btn { background: none; border: none; color: var(--brand); }
.see-details-link { font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.see-details-link:hover { color: var(--brand); }
.see-details-link i { transition: transform 0.2s ease; }
.see-details-link.is-open i { transform: rotate(180deg); }
.coupon-terms { text-align: left; }

/* =========================================================
   Coupon row (discount-first style — store/category detail)
   ========================================================= */
.coupon-row {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.coupon-row-discount {
  width: 92px; height: 92px; flex-shrink: 0;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.discount-num { font-size: 0.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.discount-label { font-size: 0.7rem; font-weight: 700; color: var(--brand); letter-spacing: 0.5px; }
.coupon-row-discount.is-free-shipping .discount-num,
.coupon-row-discount.is-free-delivery .discount-num { font-size: 0.7rem; }
.coupon-row-body { flex: 1; min-width: 220px; }
.coupon-row-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 0.25rem; }
.coupon-row-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.coupon-row-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); }
.coupon-row-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; margin-left: auto; }
.coupon-row-action .btn { min-width: 150px; }
.success-rate { font-size: 0.75rem; color: var(--text-muted); }

/* =========================================================
   Blog cards
   ========================================================= */
.blog-card {
  display: block; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); overflow: hidden; height: 100%;
  transition: all .18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.blog-card-img { height: 200px; background: var(--bg-soft); position: relative; background-size: cover; background-position: center; }
.blog-cat-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: #fff; color: var(--text-dark); font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.blog-card-body { padding: 1.1rem; }
.blog-card-body h4 { font-size: 1.02rem; font-weight: 700; margin: 0.4rem 0 0.35rem; }
.read-more-link { color: var(--brand); font-weight: 600; font-size: 0.85rem; }
.blog-cat-label { color: var(--brand); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }


.blog-featured {
  display: flex; gap: 1.75rem; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.blog-featured-img { width: 340px; max-width: 100%; height: 260px; border-radius: var(--radius-md); background: var(--bg-soft); background-size: cover; background-position: center; flex-shrink: 0; }
.blog-featured-body { flex: 1; min-width: 260px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { font-weight: 800; font-size: 1.7rem; margin: 0.6rem 0; }

/* Generic image-fill placeholders using gradients (no external images) */
[class*="img-blog-"] { background: linear-gradient(135deg, #e9e4d8, #d7ccb5); }

/* Blog category pills */
.blog-cat-pills .pill {
  display: inline-block; padding: 0.45rem 1.1rem; border-radius: 22px;
  border: 1px solid var(--border-soft); color: var(--text-dark); font-size: 0.88rem; font-weight: 500; margin-right: 0.5rem; margin-bottom: 0.5rem;
}
.blog-cat-pills .pill.active,
.blog-cat-pills .pill:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Sidebar widgets (blog page) */
.sidebar-widget { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-widget h5 { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.sidebar-cat-row { display: flex; justify-content: space-between; padding: 0.55rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-soft); }
.sidebar-cat-row:last-child { border-bottom: none; }
.popular-post-item { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.popular-post-thumb { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; background: var(--bg-soft); background-size: cover; background-position: center; }
.popular-post-item .title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.popular-post-item .date { font-size: 0.75rem; color: var(--text-muted); }
.mini-coupon-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.mini-coupon-logo { width: 42px; height: 42px; border: 1px solid var(--border-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.mini-coupon-logo .logo-mark { font-size: 0.7rem; }
.mini-coupon-row .name { font-size: 0.85rem; font-weight: 600; }
.mini-coupon-row .discount { font-size: 0.75rem; color: var(--text-muted); }
.mini-coupon-row .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; margin-left: auto; }

/* =========================================================
   Homepage hero
   ========================================================= */
.home-hero { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 3rem 2.5rem; margin: 1.5rem 0 2.5rem; position: relative; overflow: hidden; }
.hero-crown { color: var(--brand); font-size: 1.4rem; margin-bottom: 0.4rem; }
.home-hero .eyebrow {
  background: #fff; color: var(--brand); font-weight: 600; font-size: 0.8rem;
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 20px; margin-bottom: 1rem;
}
.home-hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.brush-highlight {
  position: relative; display: inline-block; color: #fff; padding: 0.08em 0.4em; z-index: 1;
}
.brush-highlight::before {
  content: ""; position: absolute; top: 0.1em; right: -0.2em; bottom: 0.14em; left: -0.2em;
  background: var(--brand); transform: rotate(-1.3deg);
  border-radius: 6px 16px 8px 18px / 16px 6px 18px 8px; z-index: -1;
}
.home-hero p.lead-text { color: var(--text-muted); max-width: 420px; margin-bottom: 1.5rem; }
.home-hero-stats { display: flex; align-items: flex-start; gap: 1.1rem; margin-top: 2rem; flex-wrap: wrap; }
.home-hero-stats .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: 0.76rem; color: var(--text-muted); font-weight: 600; line-height: 1.25; }
.home-hero-stats .stat-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.1rem; background: #fff;
}
.home-hero-stats .stat-divider { width: 1px; align-self: stretch; background: var(--border-soft); margin: 0.2rem 0; }
.home-hero-img-wrap { position: relative; height: 100%; min-height: 320px; }
.home-hero-img {
  border-radius: var(--radius-md); height: 100%; min-height: 320px; width: 100%;
  max-height: 520px; object-fit: cover; object-position: top center; display: block;
}
@media (max-width: 991px) {
  .home-hero-img { max-height: 360px; }
}
@media (max-width: 576px) {
  .home-hero h1 { font-size: 1.6rem; }
  .home-hero-stats { gap: 0.75rem; }
  .home-hero-stats .stat-divider { display: none; }
}

/* Section headings */
.section-title { font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.section-link { color: var(--brand); font-weight: 600; font-size: 0.9rem; }

/* Homepage top coupon strip */
.top-coupon-tile {
  background: var(--bg-soft); border-radius: var(--radius-md); padding: 1.25rem;
  text-align: center; height: 100%;
}
.top-coupon-tile .logo-mark { justify-content: center; margin-bottom: 0.75rem; height: 28px; }
.top-coupon-tile .off-text { font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; }
.top-coupon-tile .btn { width: 100%; }

/* Deals of the day */
.deals-banner { background: var(--brand-light); border-radius: var(--radius-lg); padding: 1.5rem; }
.deal-mini-card { background: #fff; border-radius: var(--radius-sm); padding: 0.85rem; display: flex; align-items: center; gap: 0.75rem; height: 100%; }
.deal-mini-thumb { width: 52px; height: 52px; border-radius: 8px; background-color: #fff; background-size: cover; background-position: center; border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.4rem; color: var(--text-muted); }
.deal-mini-card .name { font-size: 0.85rem; font-weight: 600; }
.deal-mini-card .off { font-size: 0.78rem; color: var(--brand); font-weight: 600; }
.deal-mini-card .price { font-size: 0.85rem; font-weight: 700; }
.deal-mini-card .old-price { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.3rem; }
.deals-arrow-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; border: none; flex-shrink: 0;
}

/* Popular store logos row */
.popular-store-logo {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  height: 72px; display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.popular-store-logo:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }

/* =========================================================
   Store details page
   ========================================================= */
.store-hero-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.5rem; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.store-hero-logo { width: 150px; height: 150px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; overflow: hidden; }
.store-hero-logo .wishlist-btn { position: absolute; top: 0.6rem; right: 0.6rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.store-hero-info h1 { font-weight: 800; font-size: 1.7rem; margin-bottom: 0.2rem; display: inline-block; }
.verified-store-tag { color: var(--brand); font-size: 0.82rem; font-weight: 600; margin-left: 0.6rem; }
.store-hero-info .website { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.store-hero-stats { display: flex; gap: 1.75rem; margin-top: 1rem; flex-wrap: wrap; }
.store-hero-stats .stat { text-align: left; }
.store-hero-stats .stat .val { font-weight: 700; }
.store-hero-stats .stat .lbl { font-size: 0.78rem; color: var(--text-muted); }

.benefits-panel { background: var(--bg-soft); border-radius: var(--radius-md); padding: 1.5rem; }
.benefits-panel h5 { font-weight: 700; margin-bottom: 1rem; }
.benefits-panel ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.benefits-panel li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 0.88rem; }
.benefits-panel li i { color: var(--brand); margin-top: 0.15rem; }

.store-tabs { border-bottom: 1px solid var(--border-soft); margin: 1.75rem 0 1.5rem; }
.store-tabs .nav-link { color: var(--text-muted); font-weight: 600; border: none; border-bottom: 2px solid transparent; padding: 0.6rem 0.2rem; margin-right: 1.75rem; }
.store-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: none; }

.info-side-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.25rem; }
.info-side-card h5 { font-weight: 700; margin-bottom: 1rem; font-size: 0.98rem; }
.info-side-card ul { list-style: none; padding: 0; margin: 0; }
.info-side-card ul li { padding: 0.4rem 0; font-size: 0.88rem; color: var(--text-dark); }
.info-side-card ul.highlight-list li { display: flex; align-items: center; gap: 0.55rem; }
.info-side-card ul.highlight-list i { color: var(--brand); }

.rating-big { font-size: 2.2rem; font-weight: 800; }
.rating-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; margin-bottom: 0.35rem; }
.rating-bar-row .progress { flex: 1; height: 6px; }
.rating-bar-row .progress-bar { background: #f0b429; }

/* =========================================================
   Category details hero
   ========================================================= */
.cat-hero-icon { width: 68px; height: 68px; }

/* =========================================================
   Pagination (Stores / Coupons / Blog) — circular pill style
   ========================================================= */
.pagination {
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-item .page-link {
  min-width: 38px;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: none;
}
.page-item .page-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}
.page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.page-item.active .page-link:hover { color: #fff; }
.page-item.disabled .page-link {
  border: none;
  background: none;
  color: var(--text-muted);
  min-width: 20px;
  padding: 0 0.25rem;
}
.page-link:focus { box-shadow: none; }

/* =========================================================
   Coupon row store logo (category-details.php coupon-row)
   ========================================================= */
.coupon-row-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* =========================================================
   Coupons page hero decoration
   ========================================================= */
.coupons-hero { position: relative; overflow: visible; }
.coupons-hero-deco { position: relative; height: 110px; }
.deco-percent { position: absolute; right: 10px; top: -6px; font-size: 3.2rem; color: var(--brand); opacity: .22; }
.deco-tag { position: absolute; right: 90px; top: 34px; font-size: 1.6rem; color: var(--brand); opacity: .35; transform: rotate(-12deg); }
.deco-dot { position: absolute; border-radius: 50%; background: var(--brand); opacity: .18; }
.deco-dot-1 { width: 14px; height: 14px; right: 60px; top: 10px; }
.deco-dot-2 { width: 8px; height: 8px; right: 130px; top: 60px; }
.deco-dot-3 { width: 10px; height: 10px; right: 20px; top: 80px; }

/* =========================================================
   Coupon "Get Code" modal (Requirement 1)
   ========================================================= */
.coupon-modal-content { border-radius: var(--radius-md); border: none; }
.coupon-modal-logo {
  width: 72px; height: 72px; margin: 0 auto;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 800; font-size: 1.1rem;
}
.coupon-modal-code-box {
  border: 2px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  padding: 0.75rem 1rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-dark);
}

/* =========================================================
   Legal / company pages (About, Privacy, Terms, Disclaimer)
   ========================================================= */
.legal-content h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); line-height: 1.7; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content a { color: var(--brand); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.accordion-item { border-color: var(--border-soft); border-radius: var(--radius-sm) !important; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 0.95rem; }
.accordion-button:not(.collapsed) { background: var(--brand-light); color: var(--brand-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border-soft); }
