/*
Theme Name: SumoAffiliate Deals
Theme URI: https://example.com/
Author: SumoAffiliate
Description: A lightweight AppSumo-inspired affiliate deals theme with editable WordPress content and fast mobile-first templates.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sumoaffiliate
*/

:root {
    --sa-ink: #071713;
    --sa-text: #17211f;
    --sa-muted: #65716e;
    --sa-line: #d8e0de;
    --sa-soft: #f4f7f6;
    --sa-peach: #ffd5cc;
    --sa-blue: #477cff;
    --sa-yellow: #febc00;
    --sa-green: #21b36b;
    --sa-white: #fff;
    --sa-radius: 6px;
    --sa-wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--sa-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--sa-white);
}
a { color: inherit; text-decoration: none; }
img { height: auto; max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.sa-wrap {
    width: min(var(--sa-wrap), calc(100% - 32px));
    margin-inline: auto;
}

.sa-topbar {
    background: var(--sa-ink);
    color: var(--sa-white);
    font-size: 13px;
    text-align: center;
    padding: 8px 16px;
}

.sa-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--sa-line);
    backdrop-filter: blur(8px);
}
.sa-header__inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.sa-brand {
    display: inline-flex;
    flex-direction: column;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.05;
}
.sa-brand small {
    color: var(--sa-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}
.sa-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
}
.sa-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sa-search {
    max-width: 320px;
    width: 100%;
}
.sa-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #eef0f5;
    padding: 11px 16px;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--sa-radius);
    padding: 10px 18px;
    background: var(--sa-blue);
    color: var(--sa-white);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}
.sa-btn--yellow { background: var(--sa-yellow); color: var(--sa-ink); }
.sa-btn--ghost { background: transparent; color: var(--sa-ink); border-color: var(--sa-line); }

.sa-strip {
    overflow: hidden;
    background: #ffbeb5;
    border-bottom: 1px solid #f4a197;
    color: var(--sa-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.sa-strip__track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding: 10px 18px;
    animation: sa-marquee 34s linear infinite;
}
@keyframes sa-marquee { to { transform: translateX(-50%); } }

.sa-hero {
    background: linear-gradient(180deg, #ffdcd6 0%, #ffd0c8 100%);
    padding: 52px 0 62px;
}
.sa-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
    align-items: center;
    gap: 58px;
}
.sa-kicker {
    color: #d44720;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}
.sa-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: 0;
}
.sa-hero p {
    max-width: 620px;
    color: #33403d;
    font-size: 18px;
}
.sa-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0;
}
.sa-price strong { color: #f24c24; font-size: 24px; }
.sa-price del { color: var(--sa-muted); font-weight: 800; }
.sa-hero__media {
    background: var(--sa-ink);
    border-radius: var(--sa-radius);
    min-height: 285px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.sa-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.sa-placeholder {
    color: rgba(255,255,255,.72);
    font-size: 28px;
    font-weight: 900;
}

.sa-section {
    padding: 44px 0;
}
.sa-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.sa-section h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}
.sa-section__head p {
    margin: 4px 0 0;
    color: var(--sa-muted);
}
.sa-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.sa-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sa-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    background: var(--sa-white);
    padding: 16px;
}
.sa-card__top {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}
.sa-card__icon {
    width: 44px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--sa-soft);
    object-fit: cover;
}
.sa-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
}
.sa-card p {
    color: #26312f;
    font-size: 13px;
    margin: 0 0 12px;
}
.sa-stars {
    color: var(--sa-yellow);
    font-size: 13px;
    font-weight: 900;
}
.sa-reviews {
    color: var(--sa-blue);
    font-size: 12px;
    margin-left: 4px;
}
.sa-card .sa-price {
    margin: auto 0 12px;
    font-size: 13px;
}
.sa-card .sa-price strong { font-size: 16px; }
.sa-card .sa-btn { width: 100%; min-height: 38px; }
.sa-card__note {
    margin: 10px -2px -4px;
    border: 1px solid #ff8a76;
    border-radius: var(--sa-radius);
    color: #da2d12;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 6px;
}

.sa-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: 36px;
    align-items: center;
    background: #eef3f5;
    border-radius: var(--sa-radius);
    padding: 36px;
}
.sa-feature h2 { font-size: 36px; }
.sa-checks {
    display: grid;
    gap: 9px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}
.sa-checks li::before {
    content: "\2713";
    color: var(--sa-green);
    font-weight: 900;
    margin-right: 8px;
}

.sa-single {
    padding: 36px 0 70px;
}
.sa-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    align-items: start;
}
.sa-gallery-main {
    overflow: hidden;
    border-radius: var(--sa-radius);
    background: var(--sa-soft);
    aspect-ratio: 16 / 9;
}
.sa-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.sa-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}
.sa-thumbs img {
    width: 86px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
}
.sa-buybox {
    position: sticky;
    top: 96px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    padding: 22px;
}
.sa-buybox .sa-btn { width: 100%; }
.sa-meta-box {
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    margin: 24px 0;
    padding: 18px;
}
.sa-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    font-size: 14px;
}
.sa-meta-row strong { display: block; color: var(--sa-muted); font-size: 12px; }

.sa-content {
    max-width: 820px;
    margin-inline: auto;
}
.sa-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
}
.sa-content__image {
    overflow: hidden;
    border-radius: var(--sa-radius);
    margin: 22px 0;
}
.entry-content {
    font-size: 18px;
}
.entry-content a {
    color: var(--sa-blue);
    font-weight: 700;
    text-decoration: underline;
}
.entry-content h2,
.entry-content h3 {
    margin-top: 1.7em;
    line-height: 1.2;
}
.entry-content img {
    border-radius: var(--sa-radius);
}

.sa-footer {
    background: var(--sa-ink);
    color: var(--sa-white);
    padding: 42px 0;
    margin-top: 40px;
}
.sa-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 34px;
}
.sa-footer a, .sa-footer p {
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

@media (max-width: 900px) {
    .sa-header__inner { grid-template-columns: 1fr; gap: 14px; padding: 14px 0; }
    .sa-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
    .sa-search { max-width: none; }
    .sa-hero__grid, .sa-feature, .sa-single__grid { grid-template-columns: 1fr; }
    .sa-grid, .sa-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sa-buybox { position: static; }
}

@media (max-width: 580px) {
    .sa-wrap { width: min(100% - 22px, var(--sa-wrap)); }
    .sa-hero { padding: 34px 0 42px; }
    .sa-grid, .sa-grid--three, .sa-footer__grid, .sa-meta-row { grid-template-columns: 1fr; }
    .sa-section__head { align-items: flex-start; flex-direction: column; }
    .sa-feature { padding: 22px; }
}
