/* Homepage deferred */
[data-accent="500"] { --deal-accent: var(--theme-brand-500); --accent-logo: var(--theme-brand-500); }
[data-accent="600"] { --deal-accent: var(--theme-brand-600); --accent-logo: var(--theme-brand-600); }
[data-accent="700"] { --deal-accent: var(--theme-brand-700); --accent-logo: var(--theme-brand-700); }
[data-accent="500-600"] { --deal-accent: var(--theme-brand-600); --accent-logo: var(--theme-brand-600); }
[data-accent="500-soft"] { --deal-accent: var(--theme-brand-500); --accent-logo: var(--theme-brand-500); }
[data-accent="600-soft"] { --deal-accent: var(--theme-brand-700); --accent-logo: var(--theme-brand-700); }
[data-accent="success-500"] { --deal-accent: var(--theme-success-500); --accent-logo: var(--theme-success-500); }
[data-accent="success-600"] { --deal-accent: var(--theme-success-600); --accent-logo: var(--theme-success-600); }
[data-accent="success-700"] { --deal-accent: var(--theme-success-700); --accent-logo: var(--theme-success-700); }
[data-accent="success-soft"] { --deal-accent: var(--theme-success-500); --accent-logo: var(--theme-success-500); }
[data-accent="accent-blue"] { --deal-accent: var(--theme-accent-blue); --accent-logo: var(--theme-accent-blue); }
[data-accent="accent-blue-soft"] { --deal-accent: var(--theme-accent-blue); --accent-logo: var(--theme-brand-500); }

/* Below-fold homepage base (loaded with deferred bundle) */
.theme-section-badge{display:inline-block;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;padding:.25rem .625rem;border-radius:.375rem;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-brand-100)}
.theme-section-title{font-family:var(--theme-font-display);font-size:1.5rem;font-weight:800;color:var(--theme-text);letter-spacing:-.025em;margin-top:.5rem}
.theme-section-desc{font-size:.875rem;color:var(--theme-text-light);margin-top:.25rem}
#page-home #theme-stores{position:relative;padding:3.5rem 0;background:var(--theme-brand-50);overflow:hidden}
#page-home .theme-stores-header{margin-bottom:2.5rem;text-align:center}
#page-home .theme-stores-header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1.25rem}
#page-home .theme-stores-inline-stats{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.4375rem .9375rem;border-radius:999px;background:var(--theme-surface);border:1px solid rgba(var(--theme-brand-500-rgb),.24);box-shadow:0 4px 14px rgba(var(--theme-brand-500-rgb),.08)}
#page-home .theme-stores-inline-stat{font-size:.75rem;font-weight:600;color:rgba(var(--theme-brand-700-rgb),.78);white-space:nowrap}
#page-home .theme-stores-inline-stat strong{font-family:var(--theme-font-display);font-weight:900;color:var(--theme-brand-600)}
#page-home .theme-stores-inline-stat:last-child strong{color:var(--theme-success-600)}
#page-home .theme-stores-inline-stat-divider{width:1px;height:1rem;background:rgba(var(--theme-brand-500-rgb),.25);flex-shrink:0}
#page-home .theme-section-title--lg{font-size:clamp(1.75rem,4vw,2.25rem);margin-top:.5rem}
#page-home .theme-section-desc{font-size:.875rem;margin-top:.25rem;color:rgba(var(--theme-brand-700-rgb),.72)}
.theme-stores-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:.875rem;min-height:14rem}
.theme-stores-grid .theme-store-card{flex:0 0 calc((100% - .875rem)/2)}
@media (min-width:640px){
.theme-stores-grid{gap:1rem}
.theme-stores-grid .theme-store-card{flex-basis:calc((100% - 2 * 1rem)/3)}
}
@media (min-width:900px){
.theme-stores-grid .theme-store-card{flex-basis:calc((100% - 5 * 1rem)/6)}
}
.theme-store-card{--card-accent:var(--theme-brand-500);--card-accent-rgb:var(--theme-brand-500-rgb);--card-logo:var(--theme-brand-600);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:1.5rem .875rem 1.25rem;border-radius:var(--theme-radius-lg);background:var(--theme-surface);box-shadow:0 4px 16px rgba(var(--theme-brand-600-rgb),.07);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.theme-store-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(var(--card-accent-rgb),.16)}
.theme-store-card:hover .theme-store-logo{transform:scale(1.05)}
.theme-store-card[data-accent="600"]{--card-accent:var(--theme-brand-600);--card-accent-rgb:var(--theme-brand-600-rgb);--card-logo:var(--theme-brand-600)}
.theme-store-card[data-accent="700"]{--card-accent:var(--theme-brand-700);--card-accent-rgb:var(--theme-brand-700-rgb);--card-logo:var(--theme-brand-700)}
.theme-store-card[data-accent="500-600"],.theme-store-card[data-accent="600-soft"]{--card-accent:var(--theme-brand-600);--card-accent-rgb:var(--theme-brand-600-rgb);--card-logo:var(--theme-brand-600)}
.theme-store-card[data-accent="success-500"],.theme-store-card[data-accent="success-soft"]{--card-accent:var(--theme-success-500);--card-accent-rgb:var(--theme-success-500-rgb);--card-logo:var(--theme-success-500)}
.theme-store-card[data-accent="success-600"],.theme-store-card[data-accent="success-700"]{--card-accent:var(--theme-success-600);--card-accent-rgb:var(--theme-success-600-rgb);--card-logo:var(--theme-success-600)}
.theme-store-card[data-accent="accent-blue"],.theme-store-card[data-accent="accent-blue-soft"]{--card-accent:var(--theme-accent-blue);--card-accent-rgb:var(--theme-accent-blue-rgb);--card-logo:var(--theme-accent-blue)}
#page-home .theme-store-card--featured{padding:1.75rem 1rem 1.5rem;background:linear-gradient(180deg,var(--theme-brand-50) 0%,var(--theme-surface) 60%);box-shadow:0 20px 44px rgba(var(--theme-brand-600-rgb),.2)}
#page-home .theme-store-card--featured .theme-store-logo{width:4.25rem;height:4.25rem}
#page-home .theme-store-card--featured .theme-store-name{font-size:.9375rem}
#page-home .theme-store-card-glow,#page-home .theme-store-arrow{display:none}
.theme-store-logo-wrap{position:relative;padding:0}
.theme-store-logo{width:3.75rem;height:3.75rem;border-radius:.875rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;transition:transform .2s ease;box-shadow:0 0 0 1px rgba(var(--card-accent-rgb),.12),0 4px 14px rgba(var(--theme-brand-600-rgb),.12)}
.theme-store-logo--img{background:#fff;border:1px solid rgba(var(--theme-brand-500-rgb),.12);padding:.25rem}
.theme-store-logo--img img{width:100%;height:100%;object-fit:contain;display:block}
.theme-store-logo--letter{font-size:.875rem;font-weight:900;color:var(--theme-on-accent);background:var(--card-logo,var(--theme-brand-600))}
.theme-store-name{font-size:.875rem;font-weight:700;color:var(--theme-text);margin-top:.875rem;line-height:1.25}
.theme-store-offer{display:inline-block;max-width:100%;margin-top:.625rem;padding:.3125rem .75rem;border-radius:999px;font-size:.6875rem;font-weight:800;color:var(--theme-on-accent);background:var(--card-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.theme-store-count{display:inline-block;margin-top:.5rem;padding:.125rem .5rem;border-radius:999px;font-size:.625rem;font-weight:600;color:var(--theme-success-700);background:var(--theme-success-50);border:1px solid var(--theme-success-100)}
#page-home #theme-shopping{position:relative;padding:4rem 0;overflow:hidden}
.theme-deals-bg{position:absolute;inset:0;background:linear-gradient(175deg,var(--theme-brand-700) 0%,var(--theme-brand-700) 38%,var(--theme-brand-600) 72%,var(--theme-brand-600) 100%)}
.theme-deals-inner{position:relative;z-index:1}
.theme-deals-header{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.5rem;margin-bottom:2.5rem}
.theme-deals-flash{display:inline-flex;align-items:center;gap:.5rem;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--theme-on-accent);background:rgba(var(--theme-brand-50-rgb),.12);border:1px solid rgba(var(--theme-brand-50-rgb),.2);padding:.375rem .875rem;border-radius:999px;margin-bottom:.75rem;backdrop-filter:blur(8px)}
#page-home .theme-section-title--xl{font-family:var(--theme-font-display);font-size:clamp(2rem,5vw,2.75rem);font-weight:800;color:var(--theme-on-accent);letter-spacing:-.025em;margin-top:.5rem}
#page-home .theme-section-desc--light{font-size:1rem;color:rgba(var(--theme-brand-50-rgb),.75);max-width:28rem;margin:.25rem auto 0}
.theme-deals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.theme-deal-card{display:flex;flex-direction:column;border-radius:var(--theme-radius);background:var(--theme-surface);border:1px solid rgba(var(--theme-brand-500-rgb),.16);overflow:hidden;box-shadow:0 8px 32px rgba(var(--theme-brand-700-rgb),.2)}
#page-home .theme-deal-card{border-left:4px solid var(--theme-brand-500)}
.theme-deal-visual{position:relative;aspect-ratio:2/1;display:flex;align-items:center;justify-content:center;background:linear-gradient(0deg,color-mix(in srgb,var(--deal-accent,var(--theme-brand-500)) 26%,var(--theme-surface)) 0%,var(--theme-surface) 58%);overflow:hidden}
.theme-deal-visual-logo{position:relative;z-index:1;width:2.75rem;height:2.75rem;border-radius:var(--theme-radius-lg);display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:900;color:var(--theme-on-accent);padding:.3125rem;overflow:hidden;background:var(--accent-logo,var(--theme-brand-600))}
.theme-deal-visual-logo--img{background:#fff;border:1px solid rgba(var(--theme-brand-500-rgb),.1)}
.theme-deal-badge{position:absolute;top:.4375rem;left:.4375rem;z-index:2;font-size:.5625rem;font-weight:800;color:var(--theme-on-accent);background:var(--theme-brand-500);padding:.2rem .5rem;border-radius:.25rem;max-width:72%;text-transform:uppercase}
.theme-deal-body{padding:.625rem .75rem .75rem}
.theme-deal-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.375rem}
.theme-deal-category{font-size:.65rem;font-weight:700;color:var(--theme-brand-600);text-transform:uppercase;letter-spacing:.04em}
.theme-deal-verified{display:inline-flex;align-items:center;gap:.25rem;font-size:.5625rem;font-weight:600;color:var(--theme-success-700);background:var(--theme-success-50);border:1px solid var(--theme-success-100);padding:.125rem .375rem;border-radius:999px}
.theme-deal-title{font-family:var(--theme-font-display);font-size:.8125rem;font-weight:700;color:var(--theme-text);line-height:1.35;margin-bottom:.5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.theme-deal-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-top:.625rem;border-top:1px dashed rgba(var(--theme-brand-500-rgb),.28)}
.theme-deal-store-label{display:none}
.theme-deal-store-name{font-size:.6875rem;font-weight:600;color:var(--theme-text-muted)}
.theme-deal-cta{display:inline-flex;align-items:center;gap:.25rem;padding:.4375rem .625rem;font-size:.625rem;font-weight:700;color:var(--theme-on-accent);background:var(--theme-brand-500);border-radius:.375rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.theme-deal-cta--deal{background:transparent;border:1px solid var(--theme-brand-500);color:var(--theme-brand-600)}
#theme-footer{border-top:1px solid var(--theme-border);background:var(--theme-surface);padding:3.5rem 0 2rem}
.theme-footer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2.5rem}
.theme-footer-brand{grid-column:span 2}
.theme-footer-brand-row{display:flex;align-items:center;gap:.5rem}
#theme-footer-brand-icon{width:2rem;height:2rem;border-radius:var(--theme-radius);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:900;color:var(--theme-on-accent);background:var(--theme-brand-600)}
.theme-footer-name{font-family:var(--theme-font-display);font-size:1rem;font-weight:800;color:var(--theme-text)}
.theme-footer-about{font-size:.75rem;color:var(--theme-text-light);line-height:1.6;margin-top:1rem;max-width:16rem}
.theme-footer-col h3{font-family:var(--theme-font-display);font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--theme-text)}
.theme-footer-col ul{margin-top:1rem;list-style:none;padding:0}
.theme-footer-col li+li{margin-top:.625rem}
.theme-footer-col a,.theme-footer-placeholder{font-size:.75rem;font-weight:500;color:var(--theme-text-muted);cursor:pointer}
.theme-footer-bottom{margin-top:3.5rem;padding-top:2rem;border-top:1px solid var(--theme-border);display:flex;flex-direction:column;align-items:center;gap:.75rem;font-size:.75rem;color:var(--theme-text-light);text-align:center}
.theme-footer-bottom strong{font-weight:600;color:var(--theme-text-muted)}

.theme-deal-visual-logo,
.theme-search-result-logo {
    background: var(--accent-logo, var(--theme-brand-600));
}

.theme-search-empty {
    padding: 0.625rem;
    font-size: 0.75rem;
    color: var(--theme-text-light);
}
#theme-mobile-nav {
    display: none;
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
    box-shadow: 0 10px 40px rgba(var(--theme-brand-600-rgb), 0.08);
}

#theme-mobile-nav.is-open { display: block; }

@media (min-width: 1024px) {
    #theme-mobile-nav { display: none !important; }
}

.theme-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.theme-mobile-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--theme-radius);
    border: 1px solid var(--theme-border);
    background: rgba(var(--theme-brand-50-rgb), 0.5);
}

.theme-mobile-card:hover { background: var(--theme-brand-50); }

.theme-mobile-card strong { font-size: 0.75rem; color: var(--theme-text); }
.theme-mobile-card span { font-size: 0.625rem; color: var(--theme-text-light); margin-top: 2px; }

.theme-mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-brand-600);
    border-radius: var(--theme-radius);
}

.theme-mobile-link:hover { background: var(--theme-brand-50); }

.theme-mobile-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-radius);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.5rem;
}

.theme-mobile-btn--outline {
    border: 1px solid var(--theme-brand-100);
    color: var(--theme-brand-600);
}

.theme-mobile-btn--outline:hover { background: var(--theme-brand-50); }

.theme-mobile-btn--primary {
    background: var(--theme-brand-600);
    color: var(--theme-on-accent);
    box-shadow: 0 4px 6px -1px rgba(var(--theme-brand-600-rgb), 0.2);
}

.theme-mobile-divider {
    border: none;
    border-top: 1px solid var(--theme-border);
    margin: 1rem 0;
}
#theme-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-xl);
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(var(--theme-brand-600-rgb), 0.15);
    z-index: 50;
    text-align: left;
    font-size: 0.875rem;
}

#theme-search-dropdown.is-visible { display: block; }

.theme-search-dropdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0.5rem 0.5rem;
}

#theme-search-results {
    max-height: 16rem;
    overflow-y: auto;
}

.theme-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: var(--theme-radius);
    transition: background 0.15s;
}

.theme-search-result:hover { background: var(--theme-brand-50); }

.theme-search-result-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.theme-search-result-logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    flex-shrink: 0;
    overflow: hidden;
}

.theme-search-result-logo--img {
    background: #fff;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.14);
    padding: 0.125rem;
}

.theme-search-result-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-search-result-logo--avatar {
    background: transparent;
    border: none;
    padding: 0;
}

.theme-search-result-logo--avatar img {
    object-fit: cover;
    border-radius: inherit;
}

.theme-search-result-logo--letter {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--accent-logo, var(--theme-brand-600));
}

.theme-search-result-name {
    font-weight: 600;
    color: var(--theme-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-search-result-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-success);
    flex-shrink: 0;
}
.theme-section-cta {
    text-align: center;
    margin-top: 2rem;
}

#theme-stores .theme-section-cta {
    margin-top: 2.5rem;
}

#theme-stores .theme-btn-outline {
    background: var(--theme-surface);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-500-rgb), 0.1);
}

@media (min-width: 640px) {
.theme-section-title--lg {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.theme-section-title--xl {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--theme-on-accent);
}

.theme-section-desc--light {
    color: rgba(var(--theme-brand-50-rgb), 0.75);
    font-size: 1rem;
    max-width: 28rem;
}
}

.theme-section-badge--glow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(var(--theme-brand-500-rgb), 0.08);
}

#theme-stores .theme-section-badge--glow {
    background: var(--theme-surface);
    box-shadow: 0 4px 14px rgba(var(--theme-brand-500-rgb), 0.1);
}

#theme-stores .theme-section-badge-dot {
    background: var(--theme-success-500);
}

#theme-stores .theme-section-desc {
    color: rgba(var(--theme-brand-700-rgb), 0.72);
}

.theme-section-badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: var(--theme-brand-500);
    animation: theme-pulse-dot 2s ease-in-out infinite;
}

@keyframes theme-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.theme-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--theme-radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-brand-700);
    background: var(--theme-surface);
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.28);
    box-shadow: 0 4px 16px rgba(var(--theme-brand-500-rgb), 0.08);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, color 0.25s;
}

.theme-btn-outline:hover {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
    box-shadow: 0 8px 24px rgba(var(--theme-brand-500-rgb), 0.15);
    transform: translateY(-2px);
}

@media (min-width: 640px) {
.theme-btn-outline {
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
}

.theme-btn-gradient {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
}
}

.theme-btn-outline:hover svg { transform: translateX(4px); }

.theme-btn-outline svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-home a.theme-btn-gradient,
.theme-site a.theme-btn-gradient {
    color: var(--theme-on-accent);
}

.theme-btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--theme-radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    box-shadow: 0 8px 24px rgba(var(--theme-brand-600-rgb), 0.35);
    transition: opacity 0.2s, transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

.theme-btn-gradient:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--theme-brand-600-rgb), 0.4);
}

.theme-btn-gradient svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.theme-btn-gradient:hover svg { transform: translateX(4px); }
/* ---- Deals ---- */
#theme-shopping {
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

#theme-shopping::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(180deg, var(--theme-surface) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.theme-deals-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        175deg,
        var(--theme-brand-700) 0%,
        var(--theme-brand-700) 38%,
        var(--theme-brand-600) 72%,
        var(--theme-brand-600) 100%
    );
}

.theme-deals-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 1px 1px, var(--theme-brand-50) 1px, transparent 1px);
    background-size: 32px 32px;
}

.theme-deals-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 700px);
    height: 400px;
    border-radius: 999px;
    background: rgba(var(--theme-brand-500-rgb), 0.18);
    filter: blur(100px);
    pointer-events: none;
}

.theme-deals-inner {
    position: relative;
    z-index: 1;
}

.theme-deals-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.theme-deals-flash {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--theme-on-accent);
    background: rgba(var(--theme-brand-50-rgb), 0.12);
    border: 1px solid rgba(var(--theme-brand-50-rgb), 0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

.theme-deals-flash-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--theme-success-500);
    position: relative;
}

.theme-deals-flash-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--theme-success-500);
    animation: theme-live-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes theme-live-ping {
    0% { transform: scale(1); opacity: 0.75; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

.theme-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .theme-deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .theme-deals-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.theme-deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--theme-radius-xl);
    background: var(--theme-surface);
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.16);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--theme-brand-700-rgb), 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.theme-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(var(--theme-brand-700-rgb), 0.28);
}

.theme-deal-card--hero {
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.5);
    box-shadow: 0 12px 40px rgba(var(--theme-brand-500-rgb), 0.25), 0 8px 32px rgba(var(--theme-brand-700-rgb), 0.2);
}

.theme-deal-card--hero .theme-deal-visual {
    background: var(--theme-surface);
}

.theme-deal-card--hero .theme-deal-visual-logo {
    width: 5rem;
    height: 5rem;
    font-size: 1.125rem;
}

.theme-deal-card--hero .theme-deal-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.theme-deal-hot {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-500));
    padding: 0.3rem 0.625rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(var(--theme-brand-500-rgb), 0.4);
    letter-spacing: 0.02em;
}

.theme-deal-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 26%, var(--theme-surface)) 0%, var(--theme-surface) 58%);
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 87.5% 100%, 75% 88%, 62.5% 100%, 50% 88%, 37.5% 100%, 25% 88%, 12.5% 100%, 0% 88%);
}

.theme-deal-visual-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 65% at 88% 88%, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 10%, transparent), transparent 68%),
        radial-gradient(ellipse 50% 45% at 12% 18%, rgba(var(--theme-brand-500-rgb), 0.05), transparent 62%),
        radial-gradient(circle at 1px 1px, rgba(var(--theme-brand-500-rgb), 0.03) 1px, transparent 1px);
    background-size: auto, auto, 22px 22px;
}

.theme-deal-visual::after {
    content: '';
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--deal-accent, var(--theme-brand-500)) 14%, transparent) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.theme-deal-visual-logo {
    position: relative;
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--theme-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14),
        0 2px 6px rgba(var(--theme-brand-500-rgb), 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.theme-deal-visual-logo--img {
    background: #fff;
    border: 1px solid rgba(var(--theme-brand-500-rgb), 0.1);
    padding: 0.5rem;
}

.theme-deal-visual-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-deal-visual-logo--avatar {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14);
}

.theme-deal-visual-logo--avatar img {
    object-fit: cover;
    border-radius: inherit;
}

.theme-deal-card:hover .theme-deal-visual-logo {
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 10px 28px rgba(var(--theme-brand-700-rgb), 0.18),
        0 4px 10px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-deal-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    max-width: 80%;
    padding: 0.5rem 0.875rem;
    border-radius: var(--theme-radius);
    font-size: 0.6875rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-600), var(--theme-brand-700));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(var(--theme-brand-600-rgb), 0.35);
}

.theme-deal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.theme-deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.theme-deal-category {
    font-weight: 600;
    color: var(--theme-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-deal-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--theme-success-700);
    background: var(--theme-success-bg);
    flex-shrink: 0;
}

.theme-deal-verified-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: var(--theme-success-500);
}

.theme-deal-title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

@media (min-width: 640px) {
.theme-deal-title {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}
}

.theme-deal-card:hover .theme-deal-title { color: var(--theme-brand-500); }

.theme-deal-footer {
    position: relative;
    margin-top: auto;
    padding-top: 1.125rem;
    border-top: 2px dashed rgba(var(--theme-brand-500-rgb), 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .theme-deal-footer {
        flex-direction: row;
        align-items: flex-end;
    }
}

.theme-deal-footer::before,
.theme-deal-footer::after {
    content: '';
    position: absolute;
    top: -0.6rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--theme-brand-600);
    box-shadow: inset 0 1px 3px rgba(var(--theme-brand-700-rgb), 0.35);
    display: none;
}

.theme-deal-footer::before { left: -1.85rem; }
.theme-deal-footer::after { right: -1.85rem; }

@media (min-width: 640px) {
    .theme-deal-footer::before,
    .theme-deal-footer::after { display: block; }
}

.theme-deal-store-block { min-width: 0; }

.theme-deal-store-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-light);
}

.theme-deal-store-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-home a.theme-deal-cta,
.theme-home a.theme-deal-cta span,
.theme-site a.theme-deal-cta,
.theme-site a.theme-deal-cta span {
    color: var(--theme-on-accent);
}

.theme-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border-radius: var(--theme-radius);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-deal-cta--code {
    color: var(--theme-on-accent);
    background: linear-gradient(135deg, var(--theme-brand-500), var(--theme-brand-600));
    box-shadow: 0 4px 14px rgba(var(--theme-brand-600-rgb), 0.35);
}

.theme-deal-cta--deal {
    color: var(--theme-brand-600);
    background: transparent;
    border: 2px solid rgba(var(--theme-brand-500-rgb), 0.45);
    box-shadow: none;
}

.theme-home a.theme-deal-cta--deal,
.theme-home a.theme-deal-cta--deal span,
.theme-site a.theme-deal-cta--deal,
.theme-site a.theme-deal-cta--deal span {
    color: var(--theme-brand-600);
}

.theme-deal-cta svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s;
}

.theme-deal-cta--code:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-600-rgb), 0.45);
}

.theme-deal-cta--deal:hover {
    transform: translateY(-1px);
    border-color: var(--theme-brand-500);
    background: var(--theme-surface);
    box-shadow: 0 4px 12px rgba(var(--theme-brand-500-rgb), 0.12);
}

.theme-deal-cta:hover svg { transform: translateX(3px); }

.theme-empty--dark {
    background: rgba(var(--theme-brand-50-rgb), 0.08);
    border-color: rgba(var(--theme-brand-50-rgb), 0.15);
    backdrop-filter: blur(8px);
}

.theme-empty--dark p { color: rgba(var(--theme-brand-50-rgb), 0.8); }

.theme-empty--dark .theme-btn-gradient { margin-top: 1.25rem; }

.theme-empty {
    text-align: center;
    padding: 4rem 1rem;
    border-radius: var(--theme-radius-lg);
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.theme-empty p {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

.theme-empty .theme-link-arrow { margin-top: 1rem; }

/* ---- Footer ---- */
#theme-footer {
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
    padding: 3.5rem 0 2rem;
}

.theme-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .theme-footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .theme-footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); }
}

.theme-footer-brand {
    grid-column: span 2;
}

@media (min-width: 1024px) {
    .theme-footer-brand { grid-column: span 1; }
}

.theme-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#theme-footer-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--theme-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--theme-brand-600);
}

.theme-footer-name {
    font-family: var(--theme-font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-text);
}

.theme-footer-about {
    font-size: 0.75rem;
    color: var(--theme-text-light);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 16rem;
}

.theme-footer-col h3 {
    font-family: var(--theme-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text);
}

.theme-footer-col ul {
    margin-top: 1rem;
}

.theme-footer-col li + li { margin-top: 0.625rem; }

.theme-footer-col a,
.theme-footer-placeholder {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    transition: color 0.2s;
}

.theme-footer-col a:hover { color: var(--theme-brand-600); }

.theme-footer-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--theme-text-light);
    text-align: center;
}

@media (min-width: 640px) {
    .theme-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.theme-footer-bottom strong {
    font-weight: 600;
    color: var(--theme-text-muted);
}
#page-home .theme-deal-card {
    border-left: 4px solid var(--theme-brand-500);
    border-radius: var(--theme-radius);
}

#page-home .theme-deal-card--hero {
    border-left-width: 5px;
    border-left-color: var(--theme-brand-500);
}

#page-home .theme-deal-badge {
    border-radius: 0.25rem;
    background: var(--theme-brand-500);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#page-home .theme-deal-footer {
    border-top-style: dashed;
    border-top-color: rgba(var(--theme-brand-500-rgb), 0.28);
}

#page-home .theme-deal-cta {
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (min-width: 640px) {
#page-home .theme-deal-cta {
    font-size: 0.6875rem;
}
}

#page-home .theme-deal-cta--code {
    background: var(--theme-brand-500);
    box-shadow: 0 3px 12px rgba(var(--theme-brand-500-rgb), 0.35);
}

#page-home .theme-deal-cta--code:hover {
    background: var(--theme-brand-600);
}

#page-home .theme-deal-cta--deal {
    border-color: var(--theme-brand-500);
    color: var(--theme-brand-600);
}

#page-home .theme-deal-verified {
    background: var(--theme-success-50);
    border: 1px solid var(--theme-success-100);
}

#page-home .theme-deals-flash {
    background: rgba(var(--theme-brand-500-rgb), 0.2);
    color: var(--theme-on-accent);
}

#page-home .theme-btn-outline {
    border-radius: var(--theme-radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (min-width: 640px) {
#page-home .theme-btn-outline {
    font-size: 0.8125rem;
}
}

#page-home .theme-btn-gradient {
    border-radius: var(--theme-radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--theme-brand-500);
    box-shadow: 0 6px 20px rgba(var(--theme-brand-500-rgb), 0.35);
}

@media (min-width: 640px) {
#page-home .theme-btn-gradient {
    font-size: 0.8125rem;
}
}

#page-home .theme-btn-gradient:hover {
    background: var(--theme-brand-600);
}
.theme-store-logo--letter,
.theme-deal-visual-logo--letter {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--theme-on-accent);
    background: var(--card-logo, var(--theme-brand-600));
    box-shadow: 0 4px 12px rgba(var(--card-accent-rgb, var(--theme-brand-600-rgb)), 0.22);
}

@media (min-width: 640px) {
.theme-store-logo--letter,
.theme-deal-visual-logo--letter {
    font-size: 1rem;
}

.theme-deal-visual-logo--letter {
    font-size: 1.125rem;
}
}

.theme-deal-visual-logo--letter {
    background: var(--accent-logo, var(--theme-brand-600));
    box-shadow:
        0 0 0 3px rgba(var(--theme-brand-50-rgb), 0.95),
        0 6px 20px rgba(var(--theme-brand-700-rgb), 0.14);
}

.theme-store-logo--letter .store-logo-letter,
.theme-deal-visual-logo--letter .store-logo-letter {
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
}
@media (max-width:639px){
    #page-home #theme-stores{padding:1.5rem 0 2rem}
    #page-home .theme-stores-header{margin-bottom:1.25rem}
    #page-home .theme-stores-header-row{flex-direction:column;gap:.5rem}
    #page-home .theme-stores-inline-stats{display:none}
    #page-home .theme-section-title--lg{font-size:1.25rem!important;margin-top:.375rem}
    #page-home .theme-section-desc{font-size:.8125rem;margin-top:.125rem}
    .theme-stores-grid{gap:.5rem}
    .theme-stores-grid .theme-store-card{flex-basis:calc((100% - .5rem)/2)}
    #page-home .theme-store-card,#page-home .theme-store-card--featured{padding:.75rem .5rem .625rem}
    #page-home .theme-store-logo,#page-home .theme-store-card--featured .theme-store-logo{width:2.625rem;height:2.625rem;border-radius:.625rem}
    #page-home .theme-store-name,#page-home .theme-store-card--featured .theme-store-name{font-size:.75rem;margin-top:.5rem;line-height:1.25}
    #page-home .theme-store-offer{margin-top:.25rem;padding:.125rem .4375rem;font-size:.625rem;max-width:100%}
    #page-home .theme-store-count{margin-top:.3125rem;padding:.0625rem .375rem;font-size:.5625rem}
    /* Deals section ? compact top cards */
    #page-home #theme-shopping {
        padding: 1.5rem 0 2rem;
    }

    #page-home .theme-deals-header {
        margin-bottom: 1.25rem;
        gap: 1rem;
    }

    #page-home .theme-section-title--xl {
        font-size: 1.375rem;
    }

    #page-home .theme-section-desc--light {
        font-size: 0.8125rem;
    }

    .theme-deals-grid {
        gap: 0.625rem;
    }

    .theme-deal-card,
    #page-home .theme-deal-card--hero {
        border-radius: var(--theme-radius);
    }

    .theme-deal-visual,
    #page-home .theme-deal-card--hero .theme-deal-visual {
        aspect-ratio: 2 / 1;
        min-height: 0;
    }

    .theme-deal-visual-logo,
    #page-home .theme-deal-card--hero .theme-deal-visual-logo {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.3125rem;
        font-size: 0.875rem;
    }

    .theme-deal-visual-logo img {
        width: 100%;
        height: 100%;
    }

    .theme-deal-badge,
    #page-home .theme-deal-card--hero .theme-deal-badge {
        top: 0.4375rem;
        left: 0.4375rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.5625rem;
        max-width: 72%;
    }

    .theme-deal-body {
        padding: 0.625rem 0.75rem 0.75rem;
    }

    .theme-deal-meta {
        margin-bottom: 0.375rem;
    }

    .theme-deal-title {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
        line-height: 1.35;
    }

    .theme-deal-footer {
        padding-top: 0.625rem;
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
    }

    .theme-deal-store-block {
        flex: 1;
        min-width: 0;
    }

    .theme-deal-store-label {
        display: none;
    }

    .theme-deal-store-name {
        font-size: 0.6875rem;
        margin-top: 0;
    }

    .theme-deal-cta {
        padding: 0.4375rem 0.625rem;
        font-size: 0.625rem;
    }

    .theme-deal-cta svg {
        width: 0.75rem;
        height: 0.75rem;
    }

    .theme-deal-category {
        font-size: 0.65rem;
    }

    .theme-deal-verified {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }

    #page-home .theme-deals-header-left {
        gap: 0.5rem;
    }

    .theme-deals-flash {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        margin-bottom: 0.375rem;
    }

    .theme-btn-outline,
    .theme-btn-gradient,
    #page-home .theme-btn-outline,
    #page-home .theme-btn-gradient {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
}
