/* ============================================
   COUPONHUB - COMPLETE STYLESHEET
   ============================================ */

:root {
    --primary: #FF6B35;
    --primary-dark: #e55a2b;
    --secondary: #004E89;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============ TOP BAR ============ */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: var(--primary);
}

/* ============ HEADER ============ */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary);
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar form {
    display: flex;
    gap: 5px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero .search-box {
    max-width: 600px;
    margin: 0 auto;
}

.hero .search-box form {
    display: flex;
    gap: 10px;
}

.hero .search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.hero .search-box button {
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.hero .search-box button:hover {
    background: var(--primary-dark);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.hero-badges span {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ============ SECTION ============ */
.section {
    padding: 60px 0;
}

.section.bg-light {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}

.text-center {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gray);
}

/* ============ STORES GRID ============ */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.store-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    display: block;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.store-logo {
    font-size: 60px;
    margin-bottom: 15px;
}

.store-logo-sm {
    font-size: 24px;
}

.store-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.store-coupons {
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

.store-rating {
    color: var(--warning);
    margin-top: 10px;
    font-weight: 600;
}

/* ============ COUPONS GRID ============ */
.coupons-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.coupon-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-info a {
    font-weight: 600;
    color: var(--secondary);
}

.discount-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.coupon-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.coupon-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.code-box {
    background: var(--light);
    border: 2px dashed var(--border);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.code-box code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.coupon-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.verified {
    color: var(--success);
    font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ============ CATEGORIES ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    opacity: 0.8;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============ STORE HEADER ============ */
.store-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
}

.store-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.store-logo-large {
    font-size: 80px;
    background: white;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.store-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.store-description {
    margin-bottom: 20px;
    opacity: 0.9;
}

.store-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ============ STORE LAYOUT ============ */
.store-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.coupons-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.coupon-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    border-left: 4px solid var(--success);
}

.coupon-discount {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-content {
    flex: 1;
}

.verified-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* ============ SIDEBAR ============ */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.related-store {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--dark);
    transition: padding 0.3s;
}

.related-store:hover {
    padding-left: 10px;
}

.store-info-list {
    list-style: none;
}

.store-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.store-info-list li:last-child {
    border-bottom: none;
}

/* ============ BLOG ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 15px;
}

/* ============ BLOG POST ============ */
.blog-post {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 36px;
    margin: 15px 0;
    line-height: 1.2;
}

.blog-post-content {
    font-size: 16px;
    line-height: 1.8;
}

.blog-post-content p {
    margin-bottom: 20px;
}

/* ============ AUTH FORMS ============ */
.auth-form {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-form .text-center {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 12px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* ============ RESPONSIVE ============ */
/* ============================================
   RETAILMENOT-STYLE COUPON CARD (site-wide)
   Used via includes/coupon-card.php on store/home/category/search pages
   ============================================ */
.rmn-coupon-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s, transform 0.25s;
}

/* ============ PROFESSIONAL STORE PAGE ============ */
.store-header {
    background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.16), transparent 25%), linear-gradient(135deg, #312e81 0%, #5b21b6 55%, #7c3aed 100%);
    padding: 34px 0;
    margin-bottom: 34px;
}
.store-header-content { gap: 24px; }
.store-logo-large {
    width: 104px;
    height: 104px;
    min-width: 104px;
    font-size: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 14px 32px rgba(20,13,65,.28);
    overflow: hidden;
}
.store-logo-large img { width: 82%; height: 82%; object-fit: contain; }
.store-info { flex: 1; min-width: 0; }
.store-kicker { display: block; margin-bottom: 4px; color: #ddd6fe; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.store-info h1 { margin-bottom: 12px; font-size: clamp(24px,3vw,34px); line-height: 1.2; }
.store-heading-date { color: #fde68a; white-space: nowrap; }
.store-description { max-width: 850px; margin: 13px 0 0; font-size: 14px; line-height: 1.6; opacity: .86; }
.store-stats { align-items: center; gap: 8px; }
.store-stat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.11); font-size: 12px; backdrop-filter: blur(5px); }
.store-stat-chip .chip-icon { color: #fde68a; font-weight: 900; }
.store-stat-chip strong { font-size: 13px; }
.store-visit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; color: #4c1d95; text-decoration: none; font-size: 12px; font-weight: 800; box-shadow: 0 5px 14px rgba(24,16,62,.2); transition: transform .2s, box-shadow .2s; }
.store-visit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24,16,62,.28); }
.coupon-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 20px; }
.coupons-section .coupon-section-heading h2 { margin: 0; font-size: 24px; }
.coupon-section-eyebrow { display: block; margin-bottom: 4px; color: #7c3aed; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.coupon-count-pill { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 12px; font-weight: 800; }
.rmn-coupon-card { border-color: #e9e5f3; border-radius: 16px; box-shadow: 0 8px 26px rgba(31,41,55,.08); }
.rmn-coupon-card:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: 0 16px 38px rgba(76,29,149,.14); }
.rmn-coupon-left { background: linear-gradient(145deg,#4c1d95 0%,#7c3aed 100%); }
.rmn-coupon-action { flex-direction: column; gap: 6px; }
.coupon-hidden-label { color: #6b7280; font-size: 10px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
.reveal-code-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 0; background: linear-gradient(135deg,#5b21b6 0%,#7c3aed 100%); }
.reveal-code-btn.has-code { padding-top: 17px; }
.coupon-action-arrow { font-size: 17px; line-height: 1; transition: transform .2s; }
.reveal-code-btn:hover .coupon-action-arrow { transform: translateX(3px); }
.zipper-teeth { position: absolute; top: 0; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg,rgba(255,255,255,.95) 0 5px,transparent 5px 9px); opacity: .75; }
.zipper-teeth::after { content: ''; position: absolute; top: 0; left: 50%; width: 8px; height: 11px; border-radius: 0 0 5px 5px; background: #fde68a; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

@media (max-width: 768px) {
    .store-header { padding: 26px 0; }
    .store-header-content { align-items: flex-start; text-align: left; }
    .store-logo-large { width: 82px; height: 82px; min-width: 82px; font-size: 44px; }
    .store-stats { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .store-header-content { flex-direction: column; }
    .store-info h1 { font-size: 24px; }
    .store-stat-chip, .store-visit-btn { font-size: 11px; }
    .coupon-section-heading { align-items: flex-start; }
    .coupon-count-pill { margin-top: 4px; }
    .coupon-hidden-label { margin-top: 2px; }
}

/* Final mobile store header layout. Keep this at the end of the stylesheet. */
.store-header .store-info { display: block; flex: 1; min-width: 0; }
@media (max-width: 560px) {
    .store-header { padding: 24px 0 26px; margin-bottom: 26px; }
    .store-header .container { padding-left: 18px; padding-right: 18px; }
    .store-header .store-header-content { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
    .store-header .store-logo-large { width: 82px; height: 82px; min-width: 82px; margin: 0 auto; border-radius: 17px; }
    .store-header .store-info { display: block; width: 100%; text-align: center; }
    .store-header .store-kicker { margin-bottom: 5px; font-size: 10px; letter-spacing: 1.4px; }
    .store-header .store-info h1 { max-width: 390px; margin: 0 auto 17px; font-size: 23px; line-height: 1.25; }
    .store-header .store-heading-date { display: block; margin-top: 3px; font-size: 21px; }
    .store-header .store-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: initial; gap: 8px; width: 100%; max-width: 360px; margin: 0 auto; }
    .store-header .store-stat-chip,.store-header .store-visit-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; width: 100%; padding: 7px 8px; font-size: 10px; white-space: nowrap; }
    .store-header .store-stat-chip strong { font-size: 11px; }
    .store-header .store-visit-btn { font-size: 11px; }
    .store-header .store-description { max-width: 390px; margin: 14px auto 0; font-size: 12px; line-height: 1.55; text-align: center; }
}

/* Store header fix: overrides the older generic .store-info coupon rule. */
.store-header .store-info { display: block; flex: 1; min-width: 0; }

@media (max-width: 560px) {
    .store-header { padding: 24px 0 26px; margin-bottom: 26px; }
    .store-header .container { padding-left: 18px; padding-right: 18px; }
    .store-header-content { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
    .store-logo-large { width: 82px; height: 82px; min-width: 82px; margin: 0 auto; border-radius: 17px; }
    .store-header .store-info { display: block; width: 100%; text-align: center; }
    .store-kicker { margin-bottom: 5px; font-size: 10px; letter-spacing: 1.4px; }
    .store-info h1 { max-width: 390px; margin: 0 auto 17px; font-size: 23px; line-height: 1.25; }
    .store-heading-date { display: block; margin-top: 3px; font-size: 21px; }
    .store-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; max-width: 360px; margin: 0 auto; }
    .store-stat-chip,.store-visit-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; width: 100%; padding: 7px 8px; font-size: 10px; white-space: nowrap; }
    .store-stat-chip strong { font-size: 11px; }
    .store-visit-btn { font-size: 11px; }
    .store-description { max-width: 390px; margin: 14px auto 0; font-size: 12px; line-height: 1.55; text-align: center; }
}

/* ============ COMPLETE MOBILE RESPONSIVE LAYER ============ */
@media (max-width: 768px) {
    html { overflow-x: hidden; }
    body { width: 100%; overflow-x: hidden; }
    .top-bar { display: none !important; }
    .container { width: 100%; padding-left: 14px; padding-right: 14px; }
    .navbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px 12px; padding: 11px 0; }
    .logo { display: flex; align-items: center; min-width: 0; font-size: 22px; }
    .logo img { display: block; width: auto; max-width: 180px !important; max-height: 43px !important; object-fit: contain; }
    .mobile-menu-btn { position: static; display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; padding: 0; border: 1px solid #e5e7eb; border-radius: 11px; background: #f5f3ff; color: #5b21b6; font-size: 23px; line-height: 1; cursor: pointer; }
    .search-bar { grid-column: 1 / -1; width: 100%; max-width: none; }
    .search-bar form { gap: 7px; }
    .search-bar input { min-width: 0; width: 100%; padding: 10px 14px; font-size: 14px; }
    .search-bar button { width: 44px; flex: 0 0 44px; padding: 9px; }
    .nav-menu { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); flex-direction: initial; width: 100%; gap: 8px; padding: 11px; border: 1px solid #ede9fe; border-radius: 14px; background: #faf9ff; box-shadow: 0 12px 30px rgba(31,41,55,.1); text-align: center; }
    .nav-menu.show { display: grid; }
    .nav-menu li { min-width: 0; }
    .nav-menu a { display: block; overflow: hidden; padding: 9px 8px; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .nav-menu a::after { display: none; }
    .nav-menu a:hover,.nav-menu a.active { background: #ede9fe; color: #5b21b6; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 30px; line-height: 1.2; }
    .hero p { font-size: 15px; }
    .hero .search-box form { flex-direction: column; }
    .hero .search-box input,.hero .search-box button { width: 100%; }
    .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 7px; }
    .hero-badges span { padding: 6px 10px; font-size: 11px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 27px; }
    .store-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .sidebar { width: 100%; min-width: 0; }
    .blog-grid,.footer-grid { grid-template-columns: 1fr; }
    .blog-post,.sidebar-widget,.store-details-block,.store-faqs-block { padding-left: 18px !important; padding-right: 18px !important; }
    .breadcrumb { font-size: 12px; }
    .footer { padding: 42px 0 18px; margin-top: 40px; }
    .footer-grid { gap: 28px; }
    .footer-bottom { align-items: flex-start; }
    .footer-links { flex-wrap: wrap; gap: 10px 16px; }
    input,select,textarea,button { max-width: 100%; }
    table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 480px) {
    .logo img { max-width: 150px !important; max-height: 40px !important; }
    .nav-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rmn-coupon-card { border-radius: 13px; }
    .rmn-coupon-body { padding: 14px; }
    .rmn-coupon-title { font-size: 14px; }
    .rmn-coupon-desc { font-size: 12px; }
    .category-card,.store-card { padding: 20px 14px; }
    .newsletter-form input,.newsletter-form button { width: 100%; }
}
.rmn-coupon-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.rmn-coupon-left {
    width: 130px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}
.rmn-coupon-left::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
}
.rmn-discount { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.rmn-discount-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.rmn-discount-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-top: 4px; }

.rmn-coupon-divider {
    width: 0;
    border-left: 2px dashed var(--border);
    position: relative;
    margin: 15px 0;
}
.rmn-coupon-divider::before,
.rmn-coupon-divider::after {
    content: '';
    position: absolute;
    left: -9px;
    width: 18px;
    height: 18px;
    background: var(--light);
    border-radius: 50%;
}
.rmn-coupon-divider::before { top: -15px; }
.rmn-coupon-divider::after { bottom: -15px; }

.rmn-coupon-body { padding: 18px 20px; flex: 1; min-width: 0; }
.rmn-coupon-title { font-size: 16px; margin-bottom: 6px; }
.rmn-coupon-desc { color: var(--gray); font-size: 14px; margin-bottom: 10px; }
.rmn-coupon-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--gray); margin-top: 8px; }

.rmn-store-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rmn-store-logo { font-size: 20px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.rmn-store-name { font-weight: 700; color: var(--secondary); font-size: 13px; }

.rmn-coupon-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px 15px 10px;
}
.reveal-code-btn {
    min-width: 150px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: white;
    border: 2px dashed rgba(255,255,255,0.55);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.reveal-code-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(79,70,229,0.45); }
.reveal-code-btn.has-code {
    background: linear-gradient(135deg, var(--success) 0%, #0d9c6f 100%);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.reveal-code-btn.has-code:hover { box-shadow: 0 8px 20px rgba(16,185,129,0.45); }

@media (max-width: 640px) {
    .rmn-coupon-card { flex-direction: column; }
    .rmn-coupon-left { width: 100%; padding: 12px; }
    .rmn-coupon-divider { display: none; }
    .rmn-coupon-action { padding: 0 20px 18px; justify-content: stretch; }
    .reveal-code-btn { width: 100%; }
}

/* ============================================
   COUPON CODE REVEAL MODAL (site-wide, in footer.php)
   ============================================ */
.coupon-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.coupon-modal {
    background: white;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 35px 30px 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    animation: rmnPop 0.2s ease-out;
}
@keyframes rmnPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.coupon-modal-icon { font-size: 36px; margin-bottom: 5px; }
.coupon-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}
.coupon-modal-loading { padding: 30px 0; color: var(--gray); }
.coupon-modal-code {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: var(--dark);
    background: #FFF7ED;
}
.btn-copy-large {
    width: 100%;
    padding: 13px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 15px;
    transition: background 0.2s;
}
.btn-copy-large:hover { background: #4338CA; }
.btn-shop-now {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--success) 0%, #0d9c6f 100%);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}
.redirect-note { font-size: 12px; color: var(--gray); margin-top: 10px; }

@media (max-width: 480px) {
    .coupon-modal { padding: 28px 20px 24px; }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
    }
    
    .stores-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .store-layout {
        grid-template-columns: 1fr;
    }
    
    .coupon-item {
        flex-direction: column;
    }
    
    .coupon-discount {
        min-width: auto;
    }
    
    .store-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .store-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Final store/coupon overrides must stay after the site-wide responsive rules. */
.rmn-coupon-card { border-color: #e9e5f3; border-radius: 16px; box-shadow: 0 8px 26px rgba(31,41,55,.08); }
.rmn-coupon-card:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: 0 16px 38px rgba(76,29,149,.14); }
.rmn-coupon-left { background: linear-gradient(145deg,#4c1d95 0%,#7c3aed 100%); }
.rmn-coupon-action { flex-direction: column; gap: 6px; }
.coupon-hidden-label { color: #6b7280; font-size: 10px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
.reveal-code-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 0; background: linear-gradient(135deg,#5b21b6 0%,#7c3aed 100%); }
.reveal-code-btn.has-code { padding-top: 17px; }
.coupon-action-arrow { font-size: 17px; line-height: 1; transition: transform .2s; }
.reveal-code-btn:hover .coupon-action-arrow { transform: translateX(3px); }
.zipper-teeth { position: absolute; top: 0; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg,rgba(255,255,255,.95) 0 5px,transparent 5px 9px); opacity: .75; }
.zipper-teeth::after { content: ''; position: absolute; top: 0; left: 50%; width: 8px; height: 11px; border-radius: 0 0 5px 5px; background: #fde68a; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

@media (max-width: 768px) {
    .store-header { padding: 26px 0; }
    .store-header-content { align-items: flex-start; text-align: left; }
    .store-logo-large { width: 82px; height: 82px; min-width: 82px; font-size: 44px; }
    .store-stats { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .store-header-content { flex-direction: column; }
    .store-info h1 { font-size: 24px; }
    .store-stat-chip, .store-visit-btn { font-size: 11px; }
    .coupon-section-heading { align-items: flex-start; }
    .coupon-count-pill { margin-top: 4px; }
    .coupon-hidden-label { margin-top: 2px; }
}

/* Final mobile store header layout. */
.store-header .store-info { display: block; flex: 1; min-width: 0; }
@media (max-width: 560px) {
    .store-header { padding: 24px 0 26px; margin-bottom: 26px; }
    .store-header .container { padding-left: 18px; padding-right: 18px; }
    .store-header .store-header-content { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
    .store-header .store-logo-large { width: 82px; height: 82px; min-width: 82px; margin: 0 auto; border-radius: 17px; }
    .store-header .store-info { display: block; width: 100%; text-align: center; }
    .store-header .store-kicker { margin-bottom: 5px; font-size: 10px; letter-spacing: 1.4px; }
    .store-header .store-info h1 { max-width: 390px; margin: 0 auto 17px; font-size: 23px; line-height: 1.25; }
    .store-header .store-heading-date { display: block; margin-top: 3px; font-size: 21px; }
    .store-header .store-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: initial; gap: 8px; width: 100%; max-width: 360px; margin: 0 auto; }
    .store-header .store-stat-chip,.store-header .store-visit-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; width: 100%; padding: 7px 8px; font-size: 10px; white-space: nowrap; }
    .store-header .store-stat-chip strong { font-size: 11px; }
    .store-header .store-visit-btn { font-size: 11px; }
    .store-header .store-description { max-width: 390px; margin: 14px auto 0; font-size: 12px; line-height: 1.55; text-align: center; }
}

/* Store logo display size: 120x120 */
.store-header .store-logo-large{
    width:120px !important;
    height:120px !important;
    min-width:120px !important;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.store-header .store-logo-large img{
    width:120px !important;
    height:120px !important;
    max-width:120px !important;
    max-height:120px !important;
    object-fit:contain;
}


/* Rich store description formatting */
.store-details-block .rich-text-content{color:#374151;line-height:1.8;font-size:15px}
.store-details-block .rich-text-content h2{font-size:21px;line-height:1.35;margin:28px 0 10px;color:#111827;font-weight:700}
.store-details-block .rich-text-content h2:first-child{margin-top:6px}
.store-details-block .rich-text-content h3{font-size:18px;line-height:1.4;margin:22px 0 9px;color:#1f2937;font-weight:700}
.store-details-block .rich-text-content p{margin:0 0 17px}
.store-details-block .rich-text-content ul,.store-details-block .rich-text-content ol{margin:8px 0 18px 22px}
@media(max-width:560px){.store-details-block .rich-text-content h2{font-size:19px}.store-details-block .rich-text-content{font-size:14px;line-height:1.75}}
