/* ═══════════════════════════════════════
   flavor flavor — WordPress Theme CSS
   Modern, clean SEO blog for pet store
   ═══════════════════════════════════════ */

/* ── Reset & Custom Properties ── */

:root {
    --fl-accent: #f97316;
    --fl-accent-hover: #ea580c;
    --fl-bg: #ffffff;
    --fl-bg-alt: #fafaf9;
    --fl-bg-card: #ffffff;
    --fl-surface: #f5f5f4;
    --fl-border: #e7e5e4;
    --fl-text: #1c1917;
    --fl-text-secondary: #78716c;
    --fl-text-muted: #a8a29e;
    --fl-green: #16a34a;
    --fl-red: #dc2626;
    --fl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fl-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --fl-radius: 12px;
    --fl-radius-sm: 8px;
    --fl-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --fl-shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --fl-shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --fl-container: 1200px;
    --fl-gutter: 16px;
    --fl-header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fl-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fl-text);
    background: var(--fl-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fl-accent); text-decoration: none; }
a:hover { color: var(--fl-accent-hover); }

/* ── Container ── */

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

/* ── Header ── */

.fl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fl-border);
    height: var(--fl-header-h);
}

.fl-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.fl-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.fl-header__logo .custom-logo {
    height: 36px;
    width: auto;
}

.fl-header__logo-text {
    font-family: var(--fl-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fl-text);
}

.fl-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.fl-header__menu {
    list-style: none;
    display: flex;
    gap: 4px;
}

.fl-header__menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--fl-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--fl-radius-sm);
    transition: all .2s;
}

.fl-header__menu li a:hover,
.fl-header__menu li.current-menu-item > a,
.fl-header__menu li.current_page_item > a {
    color: var(--fl-text);
    background: var(--fl-surface);
}

.fl-header__cta {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--fl-accent);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--fl-radius-sm);
    transition: background .2s;
}

.fl-header__cta:hover {
    background: var(--fl-accent-hover);
}

/* Burger */
.fl-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.fl-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fl-text);
    border-radius: 2px;
    transition: all .3s;
}

@media (max-width: 768px) {
    .fl-header__burger { display: flex; }
    .fl-header__nav {
        display: none;
        position: absolute;
        top: var(--fl-header-h);
        left: 0; right: 0;
        background: var(--fl-bg);
        border-bottom: 1px solid var(--fl-border);
        padding: 16px;
        box-shadow: var(--fl-shadow-md);
    }
    .fl-header__nav.is-open { display: block; }
    .fl-header__menu { flex-direction: column; gap: 0; }
    .fl-header__menu li a { padding: 12px 16px; }
    .fl-header__cta { display: none; }
}

/* ── Hero ── */

.fl-hero {
    padding: 80px 0 64px;
    text-align: center;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #ecfccb 100%);
}

.fl-hero__title {
    font-family: var(--fl-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--fl-text);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.fl-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--fl-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.fl-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */

.fl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--fl-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
}

.fl-btn--primary {
    background: var(--fl-accent);
    color: #fff !important;
}

.fl-btn--primary:hover { background: var(--fl-accent-hover); }

.fl-btn--outline {
    background: transparent;
    border-color: var(--fl-border);
    color: var(--fl-text) !important;
}

.fl-btn--outline:hover {
    border-color: var(--fl-accent);
    color: var(--fl-accent) !important;
}

.fl-btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Sections ── */

.fl-section {
    padding: 64px 0;
}

.fl-section--alt {
    background: var(--fl-bg-alt);
}

.fl-section__title {
    font-family: var(--fl-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.fl-section__more {
    text-align: center;
    margin-top: 40px;
}

/* ── Categories (animal types) ── */

.fl-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fl-categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px;
    background: var(--fl-bg-card);
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    transition: all .2s;
    text-align: center;
    min-width: 140px;
}

.fl-categories__item:hover {
    border-color: var(--fl-accent);
    box-shadow: var(--fl-shadow-md);
    transform: translateY(-2px);
}

.fl-categories__name {
    font-weight: 600;
    color: var(--fl-text);
    font-size: 1rem;
}

.fl-categories__count {
    color: var(--fl-text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ── Card Grid ── */

.fl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fl-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .fl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .fl-grid, .fl-grid--2 { grid-template-columns: 1fr; }
}

/* ── Card ── */

.fl-card {
    border-radius: var(--fl-radius);
    overflow: hidden;
    background: var(--fl-bg-card);
    border: 1px solid var(--fl-border);
    transition: all .25s;
}

.fl-card:hover {
    box-shadow: var(--fl-shadow-lg);
    transform: translateY(-4px);
}

.fl-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
}

.fl-card__link--horizontal {
    flex-direction: row;
}

.fl-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.fl-card__thumb--wide {
    flex: 0 0 45%;
    aspect-ratio: auto;
    min-height: 200px;
}

.fl-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.fl-card:hover .fl-card__img {
    transform: scale(1.04);
}

.fl-card__rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.fl-card__rating--lg {
    font-size: 0.95rem;
    padding: 6px 14px;
}

.fl-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fl-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fl-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fl-text);
    margin-bottom: 8px;
}

.fl-card__title--lg {
    font-size: 1.25rem;
}

.fl-card__excerpt {
    color: var(--fl-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

.fl-card__date {
    color: var(--fl-text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
}

.fl-card__read-more {
    color: var(--fl-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
}

@media (max-width: 560px) {
    .fl-card__link--horizontal { flex-direction: column; }
    .fl-card__thumb--wide { flex: none; aspect-ratio: 16/10; min-height: auto; }
}

/* ── Tags ── */

.fl-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--fl-surface);
    color: var(--fl-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.fl-tag--sm { font-size: 0.7rem; padding: 2px 8px; }

.fl-tag--animal {
    background: #ecfccb;
    color: #3f6212;
}

/* ── Layout (content + sidebar) ── */

.fl-main {
    padding-top: 40px;
    padding-bottom: 64px;
    min-height: 60vh;
}

.fl-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .fl-layout { grid-template-columns: 1fr; }
}

.fl-page-title {
    font-family: var(--fl-font-display);
    font-size: 2rem;
    margin-bottom: 32px;
}

/* ── Single Article ── */

.fl-article__hero {
    border-radius: var(--fl-radius);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 2.4/1;
}

.fl-article__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-article__header {
    margin-bottom: 32px;
}

.fl-article__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fl-article__date {
    color: var(--fl-text-muted);
    font-size: 0.85rem;
}

.fl-article__title {
    font-family: var(--fl-font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* ── Rating Bar ── */

.fl-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-rating__bar {
    flex: 1;
    max-width: 200px;
    height: 8px;
    background: var(--fl-surface);
    border-radius: 4px;
    overflow: hidden;
}

.fl-rating__fill {
    height: 100%;
    background: var(--fl-accent);
    border-radius: 4px;
    transition: width .6s ease;
}

.fl-rating__value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fl-accent);
}

/* ── Pros / Cons (Verdict) ── */

.fl-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--fl-bg-alt);
    border-radius: var(--fl-radius);
}

.fl-verdict__col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.fl-verdict__col ul {
    list-style: none;
    padding: 0;
}

.fl-verdict__col li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--fl-text-secondary);
}

.fl-verdict__col--pro h3 { color: var(--fl-green); }
.fl-verdict__col--pro li::before { content: '✓ '; color: var(--fl-green); font-weight: 700; }
.fl-verdict__col--con h3 { color: var(--fl-red); }
.fl-verdict__col--con li::before { content: '✗ '; color: var(--fl-red); font-weight: 700; }

@media (max-width: 560px) {
    .fl-verdict { grid-template-columns: 1fr; }
}

/* ── Article Content ── */

.fl-article__content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.fl-article__content h2 {
    font-family: var(--fl-font-display);
    font-size: 1.5rem;
    margin: 40px 0 16px;
}

.fl-article__content h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
}

.fl-article__content p { margin-bottom: 16px; }

.fl-article__content ul,
.fl-article__content ol {
    margin: 0 0 16px 24px;
}

.fl-article__content li { margin-bottom: 6px; }

.fl-article__content blockquote {
    border-left: 4px solid var(--fl-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--fl-bg-alt);
    border-radius: 0 var(--fl-radius-sm) var(--fl-radius-sm) 0;
    font-style: italic;
    color: var(--fl-text-secondary);
}

.fl-article__content img {
    border-radius: var(--fl-radius-sm);
    margin: 24px 0;
}

.fl-article__content .wp-caption { margin: 24px 0; }

.fl-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.fl-article__content th,
.fl-article__content td {
    padding: 10px 14px;
    border: 1px solid var(--fl-border);
    text-align: left;
}

.fl-article__content th {
    background: var(--fl-surface);
    font-weight: 600;
}

/* ── Price Section inside article ── */

.fl-article__prices {
    margin: 48px 0 32px;
    padding: 32px;
    background: var(--fl-bg-alt);
    border-radius: var(--fl-radius);
    border: 1px solid var(--fl-border);
}

.fl-article__prices h2 {
    font-family: var(--fl-font-display);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.fl-article__buy {
    text-align: center;
    margin: 32px 0;
}

/* ── Post Navigation ── */

.fl-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--fl-border);
}

.fl-post-nav__link {
    display: block;
    padding: 16px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    transition: all .2s;
}

.fl-post-nav__link:hover {
    border-color: var(--fl-accent);
    background: var(--fl-bg-alt);
}

.fl-post-nav__link--next { text-align: right; }

.fl-post-nav__label {
    display: block;
    font-size: 0.8rem;
    color: var(--fl-text-muted);
    margin-bottom: 4px;
}

.fl-post-nav__title {
    display: block;
    font-weight: 600;
    color: var(--fl-text);
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .fl-post-nav { grid-template-columns: 1fr; }
}

/* ── Sidebar ── */

.fl-sidebar .fl-widget {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--fl-bg-alt);
    border-radius: var(--fl-radius);
}

.fl-widget__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fl-text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fl-border);
}

/* ── CTA Section ── */

.fl-cta-section {
    padding: 64px 0;
}

.fl-cta-box {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--fl-accent) 0%, #ea580c 100%);
    border-radius: 20px;
    color: #fff;
}

.fl-cta-box h2 {
    font-family: var(--fl-font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.fl-cta-box p {
    opacity: .9;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.fl-cta-box .fl-btn--primary {
    background: #fff;
    color: var(--fl-accent) !important;
}

.fl-cta-box .fl-btn--primary:hover {
    background: var(--fl-surface);
}

/* ── Comments ── */

.fl-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--fl-border);
}

.fl-comments__title {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.fl-comments__list {
    list-style: none;
}

.fl-comments__list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--fl-border);
}

.fl-comments .comment-respond {
    margin-top: 24px;
}

.fl-comments .comment-form input[type="text"],
.fl-comments .comment-form input[type="email"],
.fl-comments .comment-form input[type="url"],
.fl-comments .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    font-family: var(--fl-font);
    font-size: 0.95rem;
    transition: border-color .2s;
}

.fl-comments .comment-form input:focus,
.fl-comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--fl-accent);
}

.fl-comments .comment-form .submit {
    padding: 10px 28px;
    background: var(--fl-accent);
    color: #fff;
    border: none;
    border-radius: var(--fl-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.fl-comments .comment-form .submit:hover {
    background: var(--fl-accent-hover);
}

/* ── Footer ── */

.fl-footer {
    background: var(--fl-text);
    color: #d6d3d1;
    padding-top: 48px;
}

.fl-footer a { color: #d6d3d1; }
.fl-footer a:hover { color: #fff; }

.fl-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .fl-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .fl-footer__grid { grid-template-columns: 1fr; }
}

.fl-footer__brand {
    font-family: var(--fl-font-display);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.fl-footer__about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fl-footer__social {
    display: flex;
    gap: 12px;
}

.fl-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    transition: background .2s;
}

.fl-footer__social a:hover { background: var(--fl-accent); color: #fff; }

.fl-footer-widget__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 16px;
}

.fl-footer-widget ul {
    list-style: none;
}

.fl-footer-widget li {
    padding: 4px 0;
}

.fl-footer-widget li a {
    font-size: 0.9rem;
    transition: color .2s;
}

.fl-footer__bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
}

.fl-footer__bottom p {
    font-size: 0.8rem;
    color: var(--fl-text-muted);
}

/* ── 404 ── */

.fl-404 {
    text-align: center;
    padding: 80px 0;
}

.fl-404 h1 {
    font-family: var(--fl-font-display);
    font-size: 6rem;
    color: var(--fl-text-muted);
    line-height: 1;
    margin-bottom: 16px;
}

.fl-404 p {
    color: var(--fl-text-secondary);
    margin-bottom: 24px;
}

/* ── Misc ── */

.fl-empty {
    text-align: center;
    color: var(--fl-text-muted);
    padding: 48px 0;
    font-size: 1.1rem;
}

.fl-archive-header {
    margin-bottom: 32px;
}

.fl-archive-desc {
    color: var(--fl-text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ── Pagination ── */

.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--fl-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all .2s;
}

.nav-links a {
    background: var(--fl-surface);
    color: var(--fl-text);
}

.nav-links a:hover {
    background: var(--fl-accent);
    color: #fff;
}

.nav-links .current {
    background: var(--fl-accent);
    color: #fff;
}

/* ── Search Form in sidebar ── */

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

.search-form .search-field {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    font-family: var(--fl-font);
    font-size: 0.9rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--fl-accent);
}

.search-form .search-submit {
    padding: 8px 16px;
    background: var(--fl-accent);
    color: #fff;
    border: none;
    border-radius: var(--fl-radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* ── Article page without sidebar ── */

.fl-article--page {
    max-width: 800px;
    margin: 0 auto;
}

.fl-article--page .fl-article__title {
    text-align: center;
    margin-bottom: 40px;
}

/* ── WP Block alignment ── */

.fl-article__content .alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.fl-article__content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

@media (max-width: 768px) {
    .fl-article__content .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* ── Print ── */

@media print {
    .fl-header, .fl-footer, .fl-sidebar,
    .fl-post-nav, .fl-cta-section, .fl-comments { display: none; }
    .fl-layout { grid-template-columns: 1fr; }
    body { font-size: 12pt; }
}
