/* ==========================================================================
   Almira Bebek — Blog Styles (Premium Baby Theme v3.9)
   Newspaper-inspired + baby brand design language
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --ab-primary: #14B8A6;
    --ab-primary-dark: #0D9488;
    --ab-cta: #F97316;
    --ab-bg-dark: #111827;
    --ab-bg-light: #F9FAFB;
    --ab-border: #E5E7EB;
    --ab-text: #1F2937;
    --ab-text-muted: #6B7280;
    --ab-text-light: #9CA3AF;
    --ab-radius: 12px;
    --ab-radius-sm: 8px;
    --ab-radius-xs: 6px;
    --ab-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --ab-shadow: 0 4px 12px rgba(0,0,0,.08);
    --ab-shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --ab-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Container ---------- */
.ab-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */
.ab-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--ab-primary), var(--ab-cta));
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.ab-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--ab-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ab-shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--ab-transition);
}

.ab-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ab-back-to-top:hover {
    background: var(--ab-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(20,184,166,.3);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.ab-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}

.ab-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO GRID (Mosaic)
   ========================================================================== */
.ab-hero-grid {
    padding: 24px 0 0;
}

.ab-hero-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5px;
    border-radius: var(--ab-radius);
    overflow: hidden;
    min-height: 440px;
    box-shadow: var(--ab-shadow-lg);
}

.ab-hero-cell {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    overflow: hidden;
    transition: all var(--ab-transition);
}

.ab-hero-cell:hover {
    z-index: 2;
}

.ab-hero-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background var(--ab-transition);
    z-index: 1;
}

.ab-hero-cell:hover::after {
    background: rgba(0,0,0,.05);
}

.ab-hero-main {
    grid-row: 1 / 3;
    min-height: 440px;
}

.ab-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

.ab-hero-small {
    min-height: 216px;
}

.ab-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.72) 100%);
    transition: opacity var(--ab-transition);
    opacity: 1;
}

.ab-hero-cell:hover .ab-hero-overlay {
    opacity: .85;
}

.ab-hero-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    width: 100%;
}

.ab-hero-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.28;
    margin: 10px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.ab-hero-title-sm {
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.ab-hero-excerpt {
    color: rgba(255,255,255,.8);
    font-size: .88rem;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    flex-wrap: wrap;
}

.ab-hero-avatar {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,.4);
}

.ab-hero-author {
    font-weight: 600;
    color: #fff;
}

.ab-hero-sep {
    opacity: .5;
}

/* ==========================================================================
   CATEGORY BADGES
   ========================================================================== */
.ab-cat-badge {
    display: inline-block;
    background: var(--ab-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px 3px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    transition: all var(--ab-transition);
    white-space: nowrap;
}

.ab-cat-badge:hover {
    background: var(--ab-primary-dark);
    color: #fff;
}

.ab-cat-badge-sm {
    font-size: .62rem;
    padding: 3px 8px 2px;
}

/* Category Pill (colored per-category) */
.ab-cat-badge-pill {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px 3px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 1px solid;
    transition: all var(--ab-transition);
    white-space: nowrap;
}

.ab-cat-badge-pill:hover {
    opacity: .85;
}

/* ==========================================================================
   TRENDING BAR
   ========================================================================== */
.ab-trending-bar {
    background: var(--ab-bg-dark);
    padding: 12px 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.ab-trending-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ab-primary), var(--ab-cta), var(--ab-primary));
}

.ab-trending-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.ab-trending-label {
    background: linear-gradient(135deg, var(--ab-primary), var(--ab-primary-dark));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.ab-trending-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--ab-primary-dark);
}

.ab-trending-ticker {
    display: flex;
    gap: 28px;
    animation: abTicker 35s linear infinite;
    white-space: nowrap;
}

.ab-trending-ticker:hover {
    animation-play-state: paused;
}

.ab-trending-item {
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    text-decoration: none;
    transition: color var(--ab-transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ab-trending-item::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--ab-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.ab-trending-item:hover {
    color: var(--ab-primary);
}

@keyframes abTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   BLOG LAYOUT (Content + Sidebar)
   ========================================================================== */
.ab-blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 44px;
    align-items: start;
    padding-bottom: 60px;
}

.ab-blog-content {
    min-width: 0;
}

/* ==========================================================================
   BLOCK HEADER (Newspaper tab-on-border style — premium)
   ========================================================================== */
.ab-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--ab-border);
    margin-bottom: 22px;
    padding-bottom: 0;
    position: relative;
}

.ab-block-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
    padding: 0;
    line-height: 1;
    position: relative;
    bottom: -3px;
}

.ab-block-title span {
    display: inline-block;
    background: var(--ab-bg-dark);
    color: #fff;
    padding: 9px 16px 8px;
    border-radius: 4px 4px 0 0;
}

.ab-block-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ab-primary);
    text-decoration: none;
    transition: gap var(--ab-transition), color var(--ab-transition);
    padding-bottom: 3px;
}

.ab-block-more:hover {
    gap: 8px;
    color: var(--ab-primary-dark);
}

/* ==========================================================================
   CONTENT BLOCK
   ========================================================================== */
.ab-content-block {
    margin-bottom: 40px;
}

.ab-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ab-block-grid .ab-card-large {
    grid-column: 1;
    grid-row: 1 / 5;
    border-right: 1px solid var(--ab-border);
    padding-right: 22px;
}

.ab-block-grid .ab-card-compact {
    grid-column: 2;
    padding-left: 22px;
}

/* ==========================================================================
   CARD — LARGE
   ========================================================================== */
.ab-card-large-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ab-card-large-img {
    position: relative;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.ab-card-large-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.ab-card-large:hover .ab-card-large-img img {
    transform: scale(1.04);
}

.ab-card-large-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ab-text);
    line-height: 1.35;
    margin: 8px 0;
    transition: color var(--ab-transition);
}

.ab-card-large:hover .ab-card-large-title {
    color: var(--ab-primary);
}

.ab-card-large-excerpt {
    font-size: .85rem;
    color: var(--ab-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* ==========================================================================
   CARD — COMPACT (list style)
   ========================================================================== */
.ab-card-compact {
    border-bottom: 1px solid var(--ab-border);
    padding: 14px 0;
}

.ab-card-compact:last-child {
    border-bottom: none;
}

.ab-card-compact-link {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.ab-card-compact-img {
    width: 100px;
    height: 70px;
    border-radius: var(--ab-radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.ab-card-compact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.ab-card-compact:hover .ab-card-compact-img img {
    transform: scale(1.06);
}

.ab-card-compact-body {
    flex: 1;
    min-width: 0;
}

.ab-card-compact-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.35;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-card-compact:hover .ab-card-compact-title {
    color: var(--ab-primary);
}

.ab-card-arrow {
    flex-shrink: 0;
    color: var(--ab-text-light);
    transition: all var(--ab-transition);
    opacity: 0;
    transform: translateX(-4px);
}

.ab-card-compact:hover .ab-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--ab-primary);
}

/* ==========================================================================
   CARD — MEDIUM (grid style)
   ========================================================================== */
.ab-card-medium {
    margin-bottom: 28px;
    background: #fff;
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow-sm);
    transition: all var(--ab-transition);
}

.ab-card-medium:hover {
    box-shadow: var(--ab-shadow);
    transform: translateY(-3px);
}

.ab-card-medium-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ab-card-medium-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ab-card-medium-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.ab-card-medium:hover .ab-card-medium-img img {
    transform: scale(1.05);
}

.ab-card-medium-body {
    padding: 16px 18px 18px;
}

.ab-card-medium-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ab-text);
    line-height: 1.35;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-card-medium:hover .ab-card-medium-title {
    color: var(--ab-primary);
}

.ab-card-medium-excerpt {
    font-size: .82rem;
    color: var(--ab-text-muted);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CARD — Reading Time Badge (on image)
   ========================================================================== */
.ab-card-reading-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    letter-spacing: .02em;
}

.ab-card-reading-badge svg {
    opacity: .8;
}

/* ==========================================================================
   CARD — Placeholder Art (SVG based)
   ========================================================================== */
.ab-placeholder-art {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    position: relative;
}

.ab-placeholder-art svg {
    opacity: .35;
    transition: opacity var(--ab-transition);
}

.ab-card-medium:hover .ab-placeholder-art svg,
.ab-card-large:hover .ab-placeholder-art svg,
.ab-card-compact:hover .ab-placeholder-art svg {
    opacity: .5;
}

/* Old placeholder styles (backward compat) */
.ab-placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #E5E7EB, #D1D5DB);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E5E7EB, #D1D5DB);
}

/* ==========================================================================
   CARD META (shared)
   ========================================================================== */
.ab-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: var(--ab-text-light);
}

.ab-card-meta-sm {
    font-size: .7rem;
}

.ab-card-avatar {
    border-radius: 50%;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--ab-border);
}

.ab-card-author {
    font-weight: 600;
    color: var(--ab-text-muted);
}

.ab-meta-sep {
    color: var(--ab-border);
}

/* ==========================================================================
   LATEST POSTS GRID
   ========================================================================== */
.ab-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ab-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==========================================================================
   FEATURED STRIP (Full width, Editor's Pick)
   ========================================================================== */
.ab-featured-strip {
    margin-bottom: 40px;
}

.ab-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow);
}

.ab-strip-card {
    text-decoration: none;
    display: block;
}

.ab-strip-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ab-strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.ab-strip-card:hover .ab-strip-img img {
    transform: scale(1.06);
}

.ab-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78) 100%);
}

.ab-strip-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    z-index: 2;
}

.ab-strip-text h3 {
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 6px;
}

.ab-strip-meta {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
}

.ab-strip-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ab-border), #D1D5DB);
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */
.ab-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.ab-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ab-bg-dark);
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
    cursor: pointer;
    transition: all var(--ab-transition);
    position: relative;
    overflow: hidden;
}

.ab-load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ab-primary), var(--ab-primary-dark));
    opacity: 0;
    transition: opacity var(--ab-transition);
    pointer-events: none;
}

.ab-load-more-btn:hover::before {
    opacity: 1;
}

.ab-load-more-btn span {
    position: relative;
    z-index: 1;
}

.ab-load-more-btn.is-loading .ab-load-text { display: none; }
.ab-load-more-btn .ab-load-spinner { display: none; }
.ab-load-more-btn.is-loading .ab-load-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: abSpin .6s linear infinite;
    position: relative;
    z-index: 1;
}

.ab-load-done {
    display: inline-block;
    font-size: .85rem;
    color: var(--ab-text-light);
    padding: 12px;
}

@keyframes abSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.ab-blog-sidebar {
    position: sticky;
    top: 80px;
}

.ab-sidebar-widget {
    margin-bottom: 30px;
}

/* Widget Title (Newspaper tab style — premium) */
.ab-widget-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 18px;
    border-bottom: 3px solid var(--ab-border);
    padding: 0;
    line-height: 1;
    position: relative;
}

.ab-widget-title span {
    display: inline-block;
    background: var(--ab-bg-dark);
    color: #fff;
    padding: 8px 14px 7px;
    position: relative;
    bottom: -3px;
    border-radius: 4px 4px 0 0;
}

/* Sidebar Search */
.ab-sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--ab-border);
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    transition: all var(--ab-transition);
    padding: 0 14px;
    background: #fff;
}

.ab-sidebar-search:focus-within {
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}

.ab-search-icon {
    flex-shrink: 0;
    color: var(--ab-text-light);
    transition: color var(--ab-transition);
}

.ab-sidebar-search:focus-within .ab-search-icon {
    color: var(--ab-primary);
}

.ab-sidebar-search-input {
    flex: 1;
    border: none;
    padding: 11px 0;
    font-size: .85rem;
    outline: none;
    background: transparent;
    color: var(--ab-text);
}

/* Product Promo Banner */
.ab-widget-promo {
    margin-bottom: 30px;
}

.ab-promo-card {
    display: block;
    text-decoration: none;
    border-radius: var(--ab-radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0D9488, #14B8A6, #2DD4BF);
    transition: all var(--ab-transition);
    box-shadow: var(--ab-shadow);
}

.ab-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13,148,136,.25);
}

.ab-promo-inner {
    padding: 28px 24px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.ab-promo-inner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    z-index: -1;
}

.ab-promo-inner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    z-index: -1;
}

.ab-promo-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 12px 3px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.ab-promo-inner h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ab-promo-inner p {
    font-size: .84rem;
    opacity: .85;
    margin: 0 0 18px;
    line-height: 1.5;
}

.ab-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #0D9488;
    font-size: .82rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--ab-radius-xs);
    transition: all var(--ab-transition);
}

.ab-promo-card:hover .ab-promo-btn {
    gap: 10px;
    background: rgba(255,255,255,.95);
}

/* Social Follow */
.ab-social-follow {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ab-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--ab-radius-sm);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    transition: all var(--ab-transition);
    position: relative;
    overflow: hidden;
}

.ab-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background var(--ab-transition);
    pointer-events: none;
}

.ab-social-btn:hover::before {
    background: rgba(0,0,0,.1);
}

.ab-social-btn:hover { color: #fff; transform: translateX(3px); }

.ab-social-instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.ab-social-facebook { background: #1877F2; }
.ab-social-youtube { background: #FF0000; }

.ab-social-action {
    margin-left: auto;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255,255,255,.2);
    padding: 3px 10px 2px;
    border-radius: 12px;
    transition: background var(--ab-transition);
}

.ab-social-btn:hover .ab-social-action {
    background: rgba(255,255,255,.3);
}

/* Popular Posts */
.ab-popular-posts {
    display: flex;
    flex-direction: column;
}

.ab-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ab-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--ab-transition);
}

.ab-popular-item:last-child { border-bottom: none; }

.ab-popular-item:hover {
    padding-left: 6px;
}

.ab-popular-num {
    width: 34px;
    height: 34px;
    border-radius: var(--ab-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .84rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all var(--ab-transition);
}

.ab-popular-item:hover .ab-popular-num {
    transform: scale(1.08);
}

.ab-popular-body {
    flex: 1;
    min-width: 0;
}

.ab-popular-title {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.38;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-popular-item:hover .ab-popular-title {
    color: var(--ab-primary);
}

.ab-popular-date {
    font-size: .7rem;
    color: var(--ab-text-light);
}

/* Sidebar Categories */
.ab-sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ab-sidebar-cats li {
    border-bottom: 1px solid var(--ab-border);
}

.ab-sidebar-cats li:last-child { border-bottom: none; }

.ab-sidebar-cats a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
    font-size: .84rem;
    color: var(--ab-text);
    transition: all var(--ab-transition);
}

.ab-sidebar-cats a:hover {
    color: var(--ab-primary);
    padding-left: 6px;
}

.ab-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--ab-transition);
}

.ab-sidebar-cats a:hover .ab-cat-dot {
    transform: scale(1.3);
}

.ab-cat-name {
    flex: 1;
}

.ab-cat-count {
    background: var(--ab-bg-light);
    color: var(--ab-text-light);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    transition: all var(--ab-transition);
}

.ab-sidebar-cats a:hover .ab-cat-count {
    background: var(--ab-primary);
    color: #fff;
}

/* Newsletter Widget */
.ab-widget-newsletter .ab-newsletter-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0D9488 100%);
    border-radius: var(--ab-radius);
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ab-newsletter-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(20,184,166,.15);
    border-radius: 50%;
}

.ab-newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(20,184,166,.15);
    border-radius: 50%;
    margin-bottom: 14px;
    color: var(--ab-primary);
    position: relative;
}

.ab-newsletter-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
}

.ab-newsletter-card p {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    margin: 0 0 18px;
    position: relative;
}

.ab-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.ab-newsletter-form input[type="email"] {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 11px 16px;
    border-radius: var(--ab-radius-xs);
    font-size: .84rem;
    outline: none;
    transition: all var(--ab-transition);
}

.ab-newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,.4);
}

.ab-newsletter-form input[type="email"]:focus {
    border-color: var(--ab-primary);
    background: rgba(255,255,255,.15);
}

/* Tag Cloud */
.ab-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-tag {
    display: inline-block;
    background: var(--ab-bg-light);
    color: var(--ab-text-muted);
    border: 1px solid var(--ab-border);
    font-size: .72rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--ab-transition);
}

.ab-tag:hover {
    background: var(--ab-primary);
    color: #fff;
    border-color: var(--ab-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.ab-toc {
    background: var(--ab-bg-light);
    border: 1px solid var(--ab-border);
    border-left: 4px solid var(--ab-primary);
    border-radius: 0 var(--ab-radius-sm) var(--ab-radius-sm) 0;
    margin: 0 0 28px;
    overflow: hidden;
    transition: all var(--ab-transition);
}

.ab-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ab-text);
    cursor: pointer;
    user-select: none;
    transition: background var(--ab-transition);
}

.ab-toc-header:hover {
    background: rgba(0,0,0,.03);
}

.ab-toc-header svg {
    color: var(--ab-primary);
    flex-shrink: 0;
}

.ab-toc-header span {
    flex: 1;
}

.ab-toc-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--ab-text-light);
    display: flex;
    align-items: center;
    transition: transform var(--ab-transition);
}

.ab-toc.is-collapsed .ab-toc-toggle {
    transform: rotate(-90deg);
}

.ab-toc-list {
    list-style: none;
    padding: 0 18px 16px 18px;
    margin: 0;
    counter-reset: toc-counter;
    transition: all var(--ab-transition);
}

.ab-toc.is-collapsed .ab-toc-list {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
}

.ab-toc-list li {
    counter-increment: toc-counter;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.ab-toc-list li:last-child {
    border-bottom: none;
}

.ab-toc-list li a {
    font-size: .84rem;
    color: var(--ab-text-muted);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: all var(--ab-transition);
    line-height: 1.5;
}

.ab-toc-list li a::before {
    content: counter(toc-counter) ".";
    color: var(--ab-primary);
    font-weight: 700;
    font-size: .78rem;
    flex-shrink: 0;
}

.ab-toc-list li a:hover {
    color: var(--ab-primary);
    padding-left: 4px;
}

.ab-toc-list li.ab-toc-sub {
    padding-left: 20px;
    display: none !important;
}
.ab-toc-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ab-toc-list li.ab-toc-sub a::before {
    font-size: .72rem;
    opacity: .7;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.ab-breadcrumbs {
    padding: 18px 0;
}

.ab-breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    font-size: .78rem;
}

.ab-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--ab-text-light);
}

.ab-breadcrumbs li::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--ab-border);
    border-radius: 50%;
    margin: 0 10px;
}

.ab-breadcrumbs li:last-child::after {
    content: none;
    display: none;
}

.ab-breadcrumbs a {
    color: var(--ab-text-muted);
    text-decoration: none;
    transition: color var(--ab-transition);
}

.ab-breadcrumbs a:hover {
    color: var(--ab-primary);
}

.ab-breadcrumbs span {
    color: var(--ab-text);
    font-weight: 500;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.ab-post-header {
    padding: 10px 0 28px;
}

.ab-post-header-inner {
    max-width: 720px;
}

.ab-post-meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ab-post-title {
    font-size: clamp(1.5rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--ab-text);
    line-height: 1.22;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.ab-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ab-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ab-post-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ab-border);
}

.ab-author-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ab-text);
    text-decoration: none;
    transition: color var(--ab-transition);
}

.ab-author-name:hover {
    color: var(--ab-primary);
}

.ab-post-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    color: var(--ab-text-light);
}

.ab-post-share {
    display: flex;
    gap: 8px;
}

.ab-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ab-bg-light);
    color: var(--ab-text-muted);
    text-decoration: none;
    transition: all var(--ab-transition);
    border: 1px solid var(--ab-border);
}

.ab-share-btn:hover {
    background: var(--ab-primary);
    color: #fff;
    border-color: var(--ab-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20,184,166,.25);
}

/* Featured Image */
.ab-post-featured-img {
    margin-bottom: 36px;
}

.ab-featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--ab-radius);
    display: block;
    box-shadow: var(--ab-shadow);
}

/* Single Layout */
.ab-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 44px;
    align-items: start;
    padding-bottom: 60px;
}

.ab-single-sidebar {
    position: sticky;
    top: 80px;
}

/* Entry Content */
.ab-entry-content {
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--ab-text);
}

.ab-entry-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2.2rem 0 .8rem;
    padding-top: .5rem;
    color: var(--ab-text);
    scroll-margin-top: 80px;
}

.ab-entry-content h3 {
    font-size: 1.18rem;
    font-weight: 600;
    margin: 1.6rem 0 .5rem;
    color: var(--ab-text);
    scroll-margin-top: 80px;
}

.ab-entry-content p {
    margin-bottom: 1.1rem;
    color: #374151;
}

.ab-entry-content a {
    color: var(--ab-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: all var(--ab-transition);
}

.ab-entry-content a:hover {
    color: var(--ab-primary-dark);
    text-decoration-thickness: 2px;
}

.ab-entry-content strong {
    color: var(--ab-text);
}

.ab-entry-content ul,
.ab-entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.ab-entry-content li {
    margin-bottom: .5rem;
    line-height: 1.7;
}

.ab-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ab-radius-sm);
    margin: 1.8rem 0;
    box-shadow: var(--ab-shadow-sm);
}

.ab-entry-content blockquote {
    border-left: 4px solid var(--ab-primary);
    padding: 18px 24px;
    margin: 1.8rem 0;
    background: linear-gradient(135deg, rgba(20,184,166,.04), rgba(20,184,166,.08));
    border-radius: 0 var(--ab-radius-sm) var(--ab-radius-sm) 0;
    font-style: italic;
    color: var(--ab-text-muted);
    position: relative;
}

.ab-entry-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 14px;
    font-size: 3rem;
    color: var(--ab-primary);
    opacity: .25;
    font-family: Georgia, serif;
    line-height: 1;
}

.ab-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: .92rem;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    box-shadow: var(--ab-shadow-sm);
}

.ab-entry-content th,
.ab-entry-content td {
    padding: .7rem 1rem;
    border: 1px solid var(--ab-border);
    text-align: left;
}

.ab-entry-content th {
    background: var(--ab-bg-light);
    font-weight: 600;
    color: var(--ab-text);
}

/* Post Tags */
.ab-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0;
    border-top: 1px solid var(--ab-border);
    margin-top: 28px;
}

.ab-tags-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ab-text);
}

/* Share Bar (bottom) */
.ab-share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--ab-border);
}

.ab-share-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ab-text);
}

.ab-share-buttons {
    display: flex;
    gap: 8px;
}

.ab-share-buttons .ab-share-btn {
    width: auto;
    border-radius: var(--ab-radius-xs);
    padding: 9px 16px;
    font-size: .78rem;
    font-weight: 600;
    gap: 6px;
    border: none;
}

.ab-share-facebook { background: #1877F2; color: #fff; }
.ab-share-facebook:hover { background: #1565C0; color: #fff; border-color: #1565C0; }
.ab-share-twitter { background: #111; color: #fff; }
.ab-share-twitter:hover { background: #333; color: #fff; border-color: #333; }
.ab-share-whatsapp { background: #25D366; color: #fff; }
.ab-share-whatsapp:hover { background: #1DA851; color: #fff; border-color: #1DA851; }

/* Author Box */
.ab-author-box {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px;
    margin: 28px 0;
    background: linear-gradient(135deg, var(--ab-bg-light), #fff);
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-border);
    transition: all var(--ab-transition);
}

.ab-author-box:hover {
    box-shadow: var(--ab-shadow);
}

.ab-author-avatar {
    flex-shrink: 0;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    box-shadow: 0 4px 14px rgba(20,184,166,.25);
    border: 3px solid #fff;
    outline: 2px solid rgba(20,184,166,.2);
}

.ab-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ab-author-info {
    flex: 1;
    min-width: 0;
}

.ab-author-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ab-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ab-author-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ab-primary);
    border-radius: 50%;
    opacity: .6;
}

.ab-author-name-big {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 5px 0 10px;
}

.ab-author-name-big a {
    color: var(--ab-text);
    text-decoration: none;
    transition: color var(--ab-transition);
}

.ab-author-name-big a:hover {
    color: var(--ab-primary);
}

.ab-author-bio {
    font-size: .85rem;
    color: var(--ab-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Post Navigation */
.ab-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0;
    border-top: 1px solid var(--ab-border);
    border-bottom: 1px solid var(--ab-border);
    margin: 28px 0;
}

.ab-nav-prev,
.ab-nav-next {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    padding: 20px;
    border-radius: 0;
    transition: all var(--ab-transition);
}

.ab-nav-prev:hover,
.ab-nav-next:hover {
    background: var(--ab-bg-light);
}

.ab-nav-next {
    text-align: right;
    align-items: flex-end;
    border-left: 1px solid var(--ab-border);
}

.ab-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ab-primary);
}

.ab-nav-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-nav-prev:hover .ab-nav-title,
.ab-nav-next:hover .ab-nav-title {
    color: var(--ab-primary);
}

/* Related Posts */
.ab-related-posts {
    margin: 36px 0;
}

.ab-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ab-related-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    box-shadow: var(--ab-shadow-sm);
    transition: all var(--ab-transition);
}

.ab-related-card:hover {
    box-shadow: var(--ab-shadow);
    transform: translateY(-3px);
}

.ab-related-img {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ab-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.ab-related-card:hover .ab-related-img img {
    transform: scale(1.06);
}

.ab-related-body {
    padding: 14px 16px 16px;
}

.ab-related-body h3 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ab-text);
    line-height: 1.35;
    margin: 6px 0;
    transition: color var(--ab-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-related-card:hover .ab-related-body h3 {
    color: var(--ab-primary);
}

.ab-related-body time {
    font-size: .72rem;
    color: var(--ab-text-light);
}

/* ==========================================================================
   ARCHIVE / CATEGORY
   ========================================================================== */
.ab-archive-header {
    padding: 24px 0 32px;
    border-bottom: 3px solid var(--ab-border);
    margin-bottom: 32px;
}

.ab-archive-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--ab-primary), var(--ab-primary-dark));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 12px 3px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.ab-archive-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--ab-text);
    margin: 0 0 10px;
    line-height: 1.25;
}

.ab-archive-desc {
    font-size: .9rem;
    color: var(--ab-text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
    max-width: 600px;
}

.ab-archive-count {
    font-size: .78rem;
    color: var(--ab-text-light);
    font-weight: 500;
}

/* Author Header */
.ab-author-header {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ab-author-avatar-lg img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--ab-border);
    box-shadow: var(--ab-shadow);
}

/* Sub Categories */
.ab-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 28px;
}

.ab-subcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--ab-border);
    border-radius: 24px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ab-text);
    text-decoration: none;
    transition: all var(--ab-transition);
    box-shadow: var(--ab-shadow-sm);
}

.ab-subcat-chip:hover {
    background: var(--ab-primary);
    color: #fff;
    border-color: var(--ab-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20,184,166,.2);
}

.ab-subcat-chip:hover .ab-subcat-count {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.ab-subcat-count {
    background: var(--ab-bg-light);
    color: var(--ab-text-light);
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all var(--ab-transition);
}

/* Archive Featured Grid */
.ab-archive-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border-radius: var(--ab-radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--ab-shadow);
}

.ab-archive-fcard {
    text-decoration: none;
    display: block;
}

.ab-archive-fcard-main {
    grid-row: 1 / 3;
}

.ab-archive-fimg {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.ab-archive-fcard-main .ab-archive-fimg {
    min-height: 400px;
}

.ab-archive-fimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.ab-archive-fcard:hover .ab-archive-fimg img {
    transform: scale(1.04);
}

.ab-archive-foverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.72) 100%);
}

.ab-archive-ftext {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
    z-index: 2;
}

.ab-archive-ftext h2 {
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 8px;
}

.ab-archive-fcard-main .ab-archive-ftext h2 {
    font-size: 1.45rem;
}

.ab-archive-fmeta {
    display: flex;
    gap: 6px;
    font-size: .76rem;
    color: rgba(255,255,255,.7);
}

.ab-archive-fmeta span:first-child {
    font-weight: 600;
    color: #fff;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.ab-pagination {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--ab-border);
}

.ab-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ab-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius-sm);
    font-size: .82rem;
    font-weight: 500;
    color: var(--ab-text);
    text-decoration: none;
    transition: all var(--ab-transition);
}

.ab-pagination .page-numbers:hover {
    border-color: var(--ab-primary);
    color: var(--ab-primary);
    background: rgba(20,184,166,.04);
}

.ab-pagination .page-numbers.current {
    background: var(--ab-bg-dark);
    color: #fff;
    border-color: var(--ab-bg-dark);
}

.ab-pagination .page-numbers.dots {
    border: none;
    color: var(--ab-text-light);
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
.ab-search-form-lg {
    display: flex;
    margin-top: 20px;
    max-width: 520px;
    border: 2px solid var(--ab-border);
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    transition: all var(--ab-transition);
}

.ab-search-form-lg:focus-within {
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}

.ab-search-input-lg {
    flex: 1;
    border: none;
    padding: 13px 18px;
    font-size: .95rem;
    outline: none;
    background: transparent;
    color: var(--ab-text);
}

.ab-search-submit-lg {
    background: var(--ab-bg-dark);
    color: #fff;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--ab-transition);
}

.ab-search-submit-lg:hover {
    background: var(--ab-primary);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */
.ab-no-results {
    text-align: center;
    padding: 80px 20px;
}

.ab-no-results svg {
    color: var(--ab-text-light);
    margin-bottom: 18px;
    opacity: .5;
}

.ab-no-results h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ab-text);
    margin: 0 0 10px;
}

.ab-no-results p {
    font-size: .9rem;
    color: var(--ab-text-muted);
    margin: 0 0 24px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ab-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--ab-primary), var(--ab-primary-dark));
    color: #fff;
    border: none;
    padding: 11px 24px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--ab-radius-xs);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ab-transition);
    position: relative;
    overflow: hidden;
}

.ab-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20,184,166,.3);
    color: #fff;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.ab-comments-section {
    margin-top: 36px;
    padding-top: 28px;
}

.ab-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ab-comment {
    padding: 22px 0;
    border-bottom: 1px solid var(--ab-border);
}

.ab-comment .children {
    list-style: none;
    padding-left: 48px;
    margin: 0;
}

.ab-comment-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ab-comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ab-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ab-border);
}

.ab-comment-author {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ab-text);
    display: block;
}

.ab-comment-date {
    font-size: .72rem;
    color: var(--ab-text-light);
}

.ab-comment-content {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--ab-text-muted);
}

.ab-comment-content p {
    margin: 0 0 8px;
}

.ab-comment-awaiting {
    background: #FEF3C7;
    padding: 10px 16px;
    border-radius: var(--ab-radius-xs);
    font-size: .82rem;
    color: #92400E;
}

.ab-reply-link a {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ab-primary);
    text-decoration: none;
    transition: color var(--ab-transition);
}

.ab-reply-link a:hover {
    text-decoration: underline;
    color: var(--ab-primary-dark);
}

.ab-comments-closed {
    padding: 18px;
    background: var(--ab-bg-light);
    border-radius: var(--ab-radius-xs);
    font-size: .85rem;
    color: var(--ab-text-muted);
    text-align: center;
}

/* Comment Form */
.ab-comment-form {
    margin-top: 28px;
}

.ab-comment-reply-title {
    border-bottom: 3px solid var(--ab-border);
    margin-bottom: 22px;
}

.ab-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ab-form-group {
    margin-bottom: 16px;
}

.ab-form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ab-text);
    margin-bottom: 6px;
}

.ab-form-label .required {
    color: #EF4444;
}

.ab-form-input,
.ab-form-textarea {
    width: 100%;
    border: 2px solid var(--ab-border);
    border-radius: var(--ab-radius-xs);
    padding: 11px 16px;
    font-size: .88rem;
    color: var(--ab-text);
    outline: none;
    transition: all var(--ab-transition);
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.ab-form-input:focus,
.ab-form-textarea:focus {
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}

.ab-comment-submit {
    margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ab-blog-layout,
    .ab-single-layout {
        grid-template-columns: 1fr;
    }

    .ab-blog-sidebar,
    .ab-single-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .ab-hero-mosaic {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ab-hero-main {
        grid-row: auto;
        min-height: 280px;
    }

    .ab-hero-title {
        font-size: 1.3rem;
    }

    .ab-hero-side {
        grid-template-columns: 1fr 1fr;
    }

    .ab-hero-small {
        min-height: 150px;
    }

    .ab-block-grid {
        grid-template-columns: 1fr;
    }

    .ab-block-grid .ab-card-large {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--ab-border);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .ab-block-grid .ab-card-compact {
        padding-left: 0;
    }

    .ab-latest-grid,
    .ab-archive-grid {
        grid-template-columns: 1fr;
    }

    .ab-strip-grid {
        grid-template-columns: 1fr;
    }

    .ab-archive-featured {
        grid-template-columns: 1fr;
    }

    .ab-archive-fcard-main {
        grid-row: auto;
    }

    .ab-archive-fcard-main .ab-archive-fimg {
        min-height: 260px;
    }

    .ab-related-grid {
        grid-template-columns: 1fr;
    }

    .ab-post-nav {
        grid-template-columns: 1fr;
    }

    .ab-nav-next {
        border-left: none;
        border-top: 1px solid var(--ab-border);
    }

    .ab-share-buttons .ab-share-btn {
        padding: 8px 12px;
        font-size: .72rem;
    }

    .ab-form-row {
        grid-template-columns: 1fr;
    }

    .ab-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .ab-trending-bar {
        display: none;
    }

    .ab-author-header {
        flex-direction: column;
        text-align: center;
    }

    .ab-toc {
        margin: 0 0 20px;
    }
}

@media (max-width: 480px) {
    .ab-container {
        padding: 0 14px;
    }

    .ab-hero-side {
        grid-template-columns: 1fr;
    }

    .ab-hero-small {
        min-height: 130px;
    }

    .ab-post-title {
        font-size: 1.3rem;
    }

    .ab-post-share {
        display: none;
    }

    .ab-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ab-share-buttons {
        flex-wrap: wrap;
    }

    .ab-social-action {
        display: none;
    }

    .ab-card-medium {
        margin-bottom: 20px;
    }

    .ab-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   INSTAGRAM WIDGET
   ========================================================================== */
.ab-ig-card {
    border-radius: var(--ab-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ab-border);
    box-shadow: var(--ab-shadow-sm);
}

.ab-ig-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
}

.ab-ig-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.4);
}

.ab-ig-info {
    display: flex;
    flex-direction: column;
}

.ab-ig-username {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
}

.ab-ig-tagline {
    font-size: .72rem;
    color: rgba(255,255,255,.8);
}

.ab-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.ab-ig-cell {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.ab-ig-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s;
}

.ab-ig-cell:hover img {
    transform: scale(1.08);
    opacity: .85;
}

.ab-ig-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--ab-transition);
}

.ab-ig-follow-btn:hover {
    opacity: .92;
    color: #fff;
}

/* ==========================================================================
   SIDEBAR PRODUCTS
   ========================================================================== */
.ab-sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ab-product-mini {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ab-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--ab-transition);
    align-items: center;
}

.ab-product-mini:last-child {
    border-bottom: none;
}

.ab-product-mini:hover {
    padding-left: 4px;
}

.ab-product-mini-img {
    width: 70px;
    height: 70px;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--ab-bg-light);
}

.ab-product-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.ab-product-mini:hover .ab-product-mini-img img {
    transform: scale(1.06);
}

.ab-product-sale-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #EF4444;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .03em;
    z-index: 2;
}

.ab-product-mini-info {
    flex: 1;
    min-width: 0;
}

.ab-product-mini-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-product-mini:hover .ab-product-mini-name {
    color: var(--ab-primary);
}

.ab-product-mini-price {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ab-primary-dark);
}

.ab-product-mini-price del {
    color: var(--ab-text-light);
    font-weight: 400;
    font-size: .75rem;
    margin-right: 4px;
}

.ab-product-mini-price ins {
    text-decoration: none;
    color: #EF4444;
    font-weight: 700;
}

.ab-sidebar-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background: var(--ab-bg-dark);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ab-radius-sm);
    transition: all var(--ab-transition);
    position: relative;
    overflow: hidden;
}

.ab-sidebar-shop-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ab-primary), var(--ab-primary-dark));
    opacity: 0;
    transition: opacity var(--ab-transition);
    pointer-events: none;
}

.ab-sidebar-shop-btn:hover::before {
    opacity: 1;
}

.ab-sidebar-shop-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20,184,166,.25);
}

.ab-sidebar-shop-btn svg {
    position: relative;
    z-index: 1;
    transition: transform var(--ab-transition);
}

.ab-sidebar-shop-btn span,
.ab-sidebar-shop-btn {
    position: relative;
    z-index: 1;
}

.ab-sidebar-shop-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   SIDEBAR — Premium Product Grid
   ========================================================================== */

.ab-widget-products-premium {
    background: linear-gradient(160deg, #F0FDFA, #ECFDF5, #F8FAFC);
    border: 1px solid rgba(20,184,166,.12);
    border-radius: var(--ab-radius);
    padding: 20px 16px 16px;
}

.ab-widget-products-premium .ab-widget-title {
    margin-bottom: 14px;
}

.ab-sp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ab-sp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,.04);
}

.ab-sp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20,184,166,.15);
    border-color: rgba(20,184,166,.2);
}

.ab-sp-img {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f9fafb;
}

.ab-sp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: transform .4s ease;
}

.ab-sp-card:hover .ab-sp-img img {
    transform: scale(1.06);
}

.ab-sp-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .02em;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(220,38,38,.3);
}

.ab-sp-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.ab-sp-name {
    font-size: .68rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s ease;
}

.ab-sp-card:hover .ab-sp-name {
    color: var(--ab-primary);
}

.ab-sp-price {
    font-size: .7rem;
    font-weight: 700;
    color: var(--ab-primary-dark);
}

.ab-sp-price del {
    color: var(--ab-text-light);
    font-weight: 400;
    font-size: .6rem;
    margin-right: 3px;
}

.ab-sp-price ins {
    text-decoration: none;
    color: #EF4444;
    font-weight: 800;
}

.ab-widget-products-premium .ab-sidebar-shop-btn {
    margin-top: 12px;
}

/* ==========================================================================
   SIDEBAR — Sticky CTA Banner
   ========================================================================== */

.ab-sidebar-sticky-cta {
    position: sticky;
    top: 80px;
    z-index: 10;
}

.ab-sticky-cta-inner {
    background: linear-gradient(160deg, #0F766E, #0D9488, #14B8A6);
    border-radius: var(--ab-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(13,148,136,.2);
    border: 1px solid rgba(255,255,255,.1);
    position: relative;
    overflow: hidden;
}

.ab-sticky-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}

.ab-sticky-cta-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
}

.ab-sticky-cta-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    object-fit: cover;
    flex-shrink: 0;
}

.ab-sticky-cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ab-sticky-cta-name {
    font-size: .92rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}

.ab-sticky-cta-tagline {
    font-size: .66rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.ab-sticky-cta-desc {
    font-size: .74rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
    margin: 0 0 16px;
    position: relative;
}

.ab-sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
    margin-bottom: 8px;
    background: #fff;
    color: #0D9488;
}

.ab-sticky-cta-btn:hover {
    background: #F0FDFA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.ab-sticky-cta-btn-outline {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 0;
}

.ab-sticky-cta-btn-outline:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    color: #fff;
}

@media (max-width: 1024px) {
    .ab-sidebar-sticky-cta {
        display: none;
    }
}

/* ==========================================================================
   INLINE PRODUCTS — Base + Themed Variants
   ========================================================================== */

/* --- Base shared styles --- */
.ab-inline-products {
    margin: 36px 0;
    padding: 24px;
    background: linear-gradient(135deg, #F0FDFA, #ECFDF5, #F0FDF4);
    border: 1px solid rgba(20,184,166,.15);
    border-radius: var(--ab-radius);
    position: relative;
    overflow: hidden;
}

.ab-inline-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ab-primary), var(--ab-cta));
}

.ab-inline-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ab-inline-products-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ab-primary-dark);
    flex: 1;
    min-width: 0;
}

.ab-ip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20,184,166,.12);
    color: var(--ab-primary);
    flex-shrink: 0;
}

.ab-ip-icon svg {
    width: 16px;
    height: 16px;
}

.ab-ip-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ab-ip-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.ab-ip-subtitle {
    font-size: .72rem;
    font-weight: 500;
    color: var(--ab-text-muted);
    opacity: .85;
}

/* Section header tags (sale info, discount %) */
.ab-ip-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ab-ip-tag {
    display: inline-flex;
    align-items: center;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .02em;
    line-height: 1.5;
    white-space: nowrap;
}

.ab-ip-tag-discount {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
    border: 1px solid rgba(220,38,38,.15);
}

.ab-ip-tag-count {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1D4ED8;
    border: 1px solid rgba(29,78,216,.12);
}

.ab-ip-tag-sale {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #B45309;
    border: 1px solid rgba(180,83,9,.12);
}

/* Flash Sale section — animated tag */
.ab-ip-flash-sale .ab-ip-tag-discount {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #fff;
    border-color: transparent;
    animation: ab-tag-pulse 2s ease infinite;
}

@keyframes ab-tag-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .8; transform: scale(1.03); }
}

/* Sale section — warm tag colors */
.ab-ip-sale .ab-ip-tag-discount {
    background: linear-gradient(135deg, #FDE68A, #FCD34D);
    color: #92400E;
    border-color: rgba(146,64,14,.1);
}

.ab-inline-products-all {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ab-primary);
    text-decoration: none;
    transition: all var(--ab-transition);
    white-space: nowrap;
}

.ab-inline-products-all:hover {
    text-decoration: underline;
}

.ab-inline-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ab-product-inline-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ab-shadow-sm);
    transition: all var(--ab-transition);
}

.ab-product-inline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ab-shadow);
}

.ab-product-inline-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ab-bg-light);
}

.ab-product-inline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.ab-product-inline-card:hover .ab-product-inline-img img {
    transform: scale(1.06);
}

.ab-product-inline-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ab-product-inline-name {
    font-size: .74rem;
    font-weight: 600;
    color: var(--ab-text);
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ab-transition);
}

.ab-product-inline-card:hover .ab-product-inline-name {
    color: var(--ab-primary);
}

.ab-product-inline-price {
    font-size: .76rem;
    font-weight: 700;
    color: var(--ab-primary-dark);
    margin-bottom: 4px;
}

.ab-product-inline-price del {
    color: var(--ab-text-light);
    font-weight: 400;
    font-size: .72rem;
    margin-right: 4px;
}

.ab-product-inline-price ins {
    text-decoration: none;
    color: #EF4444;
}

.ab-product-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--ab-primary);
    margin-top: auto;
    transition: gap var(--ab-transition);
}

.ab-product-inline-card:hover .ab-product-inline-btn {
    gap: 8px;
}

/* --- Theme: Trending (teal/orange energy) --- */
.ab-ip-trending {
    background: linear-gradient(135deg, #F0FDFA, #ECFDF5, #FFF7ED);
    border-color: rgba(20,184,166,.15);
}
.ab-ip-trending::before {
    background: linear-gradient(90deg, #14B8A6, #F97316);
}
.ab-ip-trending .ab-ip-icon {
    background: linear-gradient(135deg, rgba(20,184,166,.15), rgba(249,115,22,.1));
    color: #14B8A6;
}
.ab-ip-trending .ab-ip-title { color: #0D9488; }
.ab-ip-trending .ab-inline-products-all { color: #F97316; }
.ab-ip-trending .ab-product-inline-btn { color: #F97316; }
.ab-ip-trending .ab-product-inline-card:hover .ab-product-inline-name { color: #F97316; }

/* --- Theme: Flash Sale (red pulse urgency) --- */
.ab-ip-flash-sale {
    background: linear-gradient(135deg, #FEF2F2, #FFF1F2, #FEE2E2);
    border-color: rgba(239,68,68,.15);
}
.ab-ip-flash-sale::before {
    background: linear-gradient(90deg, #EF4444, #F97316, #EF4444);
    background-size: 200% 100%;
    animation: ab-flash-pulse 2s ease infinite;
}
@keyframes ab-flash-pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.ab-ip-flash-sale .ab-ip-icon {
    background: rgba(239,68,68,.12);
    color: #EF4444;
    animation: ab-flash-icon 1.5s ease infinite;
}
@keyframes ab-flash-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.ab-ip-flash-sale .ab-ip-title { color: #DC2626; }
.ab-ip-flash-sale .ab-ip-subtitle { color: #EF4444; font-weight: 600; }
.ab-ip-flash-sale .ab-inline-products-all { color: #EF4444; }
.ab-ip-flash-sale .ab-product-inline-btn { color: #EF4444; }
.ab-ip-flash-sale .ab-product-inline-price ins { color: #DC2626; font-weight: 800; }
.ab-ip-flash-sale .ab-product-inline-card:hover .ab-product-inline-name { color: #EF4444; }

/* --- Theme: Sale (warm orange/amber) --- */
.ab-ip-sale {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7, #FFF7ED);
    border-color: rgba(245,158,11,.15);
}
.ab-ip-sale::before {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
}
.ab-ip-sale .ab-ip-icon {
    background: rgba(245,158,11,.12);
    color: #F59E0B;
}
.ab-ip-sale .ab-ip-title { color: #D97706; }
.ab-ip-sale .ab-inline-products-all { color: #D97706; }
.ab-ip-sale .ab-product-inline-btn { color: #D97706; }
.ab-ip-sale .ab-product-inline-card:hover .ab-product-inline-name { color: #D97706; }

/* --- Theme: Sets / Combos (purple harmony) --- */
.ab-ip-sets {
    background: linear-gradient(135deg, #FAF5FF, #F3E8FF, #EDE9FE);
    border-color: rgba(139,92,246,.15);
}
.ab-ip-sets::before {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA, #C084FC);
}
.ab-ip-sets .ab-ip-icon {
    background: rgba(139,92,246,.12);
    color: #8B5CF6;
}
.ab-ip-sets .ab-ip-title { color: #7C3AED; }
.ab-ip-sets .ab-inline-products-all { color: #8B5CF6; }
.ab-ip-sets .ab-product-inline-btn { color: #8B5CF6; }
.ab-ip-sets .ab-product-inline-card:hover .ab-product-inline-name { color: #8B5CF6; }

/* --- Theme: New Arrivals (fresh green sparkle) --- */
.ab-ip-new-arrivals {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5, #F0FDF4);
    border-color: rgba(16,185,129,.15);
}
.ab-ip-new-arrivals::before {
    background: linear-gradient(90deg, #10B981, #34D399, #6EE7B7);
}
.ab-ip-new-arrivals .ab-ip-icon {
    background: rgba(16,185,129,.12);
    color: #10B981;
}
.ab-ip-new-arrivals .ab-ip-title { color: #059669; }
.ab-ip-new-arrivals .ab-inline-products-all { color: #10B981; }
.ab-ip-new-arrivals .ab-product-inline-btn { color: #10B981; }
.ab-ip-new-arrivals .ab-product-inline-card:hover .ab-product-inline-name { color: #10B981; }

/* --- Theme: Girls (pink/rose warmth) --- */
.ab-ip-girls {
    background: linear-gradient(135deg, #FFF1F2, #FCE7F3, #FDF2F8);
    border-color: rgba(236,72,153,.15);
}
.ab-ip-girls::before {
    background: linear-gradient(90deg, #EC4899, #F472B6, #FB7185);
}
.ab-ip-girls .ab-ip-icon {
    background: rgba(236,72,153,.12);
    color: #EC4899;
}
.ab-ip-girls .ab-ip-title { color: #DB2777; }
.ab-ip-girls .ab-inline-products-all { color: #EC4899; }
.ab-ip-girls .ab-product-inline-btn { color: #EC4899; }
.ab-ip-girls .ab-product-inline-card:hover .ab-product-inline-name { color: #EC4899; }

/* --- Theme: Boys (blue/sky confidence) --- */
.ab-ip-boys {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE, #E0F2FE);
    border-color: rgba(59,130,246,.15);
}
.ab-ip-boys::before {
    background: linear-gradient(90deg, #3B82F6, #60A5FA, #38BDF8);
}
.ab-ip-boys .ab-ip-icon {
    background: rgba(59,130,246,.12);
    color: #3B82F6;
}
.ab-ip-boys .ab-ip-title { color: #2563EB; }
.ab-ip-boys .ab-inline-products-all { color: #3B82F6; }
.ab-ip-boys .ab-product-inline-btn { color: #3B82F6; }
.ab-ip-boys .ab-product-inline-card:hover .ab-product-inline-name { color: #3B82F6; }

/* --- Theme: Featured / Editor's Pick (gold prestige) --- */
.ab-ip-featured {
    background: linear-gradient(135deg, #FFFBEB, #FEF9C3, #FEF3C7);
    border-color: rgba(217,119,6,.15);
}
.ab-ip-featured::before {
    background: linear-gradient(90deg, #D97706, #FBBF24, #D97706);
}
.ab-ip-featured .ab-ip-icon {
    background: linear-gradient(135deg, rgba(217,119,6,.15), rgba(251,191,36,.15));
    color: #D97706;
}
.ab-ip-featured .ab-ip-title { color: #B45309; }
.ab-ip-featured .ab-inline-products-all { color: #D97706; }
.ab-ip-featured .ab-product-inline-btn { color: #D97706; }
.ab-ip-featured .ab-product-inline-card:hover .ab-product-inline-name { color: #D97706; }

/* --- Theme: Seasonal (warm gradient shifts by feel) --- */
.ab-ip-seasonal {
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5, #FEF3C7);
    border-color: rgba(249,115,22,.15);
}
.ab-ip-seasonal::before {
    background: linear-gradient(90deg, #F97316, #FBBF24, #14B8A6);
}
.ab-ip-seasonal .ab-ip-icon {
    background: rgba(249,115,22,.12);
    color: #F97316;
}
.ab-ip-seasonal .ab-ip-title { color: #EA580C; }
.ab-ip-seasonal .ab-inline-products-all { color: #F97316; }
.ab-ip-seasonal .ab-product-inline-btn { color: #F97316; }
.ab-ip-seasonal .ab-product-inline-card:hover .ab-product-inline-name { color: #F97316; }

/* --- Theme: Random / General (default teal) --- */
.ab-ip-random {
    background: linear-gradient(135deg, #F0FDFA, #ECFDF5, #F0FDF4);
    border-color: rgba(20,184,166,.15);
}
.ab-ip-random::before {
    background: linear-gradient(90deg, var(--ab-primary), var(--ab-cta));
}
.ab-ip-random .ab-ip-icon {
    background: rgba(20,184,166,.12);
    color: var(--ab-primary);
}
.ab-ip-random .ab-ip-title { color: var(--ab-primary-dark); }

/* --- Responsive for inline products --- */
@media (max-width: 768px) {
    .ab-inline-products {
        padding: 14px;
        margin: 20px -14px;
        border-radius: 0;
    }

    .ab-inline-products::before {
        height: 3px;
    }

    .ab-inline-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }

    .ab-inline-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ab-product-inline-img {
        aspect-ratio: 1;
    }

    .ab-product-inline-info {
        padding: 6px 8px 8px;
    }

    .ab-product-inline-name {
        font-size: .68rem;
        line-height: 1.25;
        margin-bottom: 3px;
        -webkit-line-clamp: 1;
    }

    .ab-product-inline-price {
        font-size: .7rem;
        margin-bottom: 0;
    }

    .ab-product-inline-price del {
        font-size: .62rem;
    }

    /* Hide CTA button on mobile — card itself is tappable */
    .ab-product-inline-btn {
        display: none;
    }

    .ab-ip-subtitle {
        display: none;
    }

    .ab-ip-icon {
        width: 28px;
        height: 28px;
    }

    .ab-ip-icon svg {
        width: 13px;
        height: 13px;
    }

    .ab-ip-title {
        font-size: .78rem;
    }

    .ab-ip-tags {
        gap: 4px;
    }

    .ab-ip-tag {
        font-size: .56rem;
        padding: 1px 6px;
    }

    .ab-inline-products-all {
        font-size: .7rem;
    }
}

@media (max-width: 480px) {
    .ab-inline-products {
        padding: 10px;
        margin: 16px -10px;
    }

    .ab-inline-products-header {
        gap: 4px;
        margin-bottom: 8px;
    }

    .ab-inline-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .ab-product-inline-card {
        border-radius: 6px;
    }

    .ab-product-inline-img {
        aspect-ratio: 1;
    }

    .ab-product-inline-info {
        padding: 5px 6px 6px;
    }

    .ab-product-inline-name {
        font-size: .64rem;
        margin-bottom: 2px;
    }

    .ab-product-inline-price {
        font-size: .66rem;
    }

    .ab-product-inline-price del {
        font-size: .58rem;
        margin-right: 2px;
    }

    .ab-ip-icon {
        width: 24px;
        height: 24px;
    }

    .ab-ip-icon svg {
        width: 12px;
        height: 12px;
    }

    .ab-ip-title {
        font-size: .72rem;
    }

    .ab-ip-tags {
        gap: 3px;
    }

    .ab-ip-tag {
        font-size: .52rem;
        padding: 1px 5px;
        border-radius: 3px;
    }

    .ab-ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
html[data-theme="dark"] {
    --ab-bg-light: #1F2937;
    --ab-border: #374151;
    --ab-text: #F3F4F6;
    --ab-text-muted: #9CA3AF;
    --ab-text-light: #6B7280;
}

html[data-theme="dark"] .ab-blog-main,
html[data-theme="dark"] .ab-single-main,
html[data-theme="dark"] .ab-archive-main,
html[data-theme="dark"] .ab-search-main {
    background: var(--ab-bg-dark);
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-card-medium {
    background: #1F2937;
}

html[data-theme="dark"] .ab-related-card {
    background: #1F2937;
}

html[data-theme="dark"] .ab-post-title,
html[data-theme="dark"] .ab-archive-title,
html[data-theme="dark"] .ab-card-large-title,
html[data-theme="dark"] .ab-card-compact-title,
html[data-theme="dark"] .ab-card-medium-title,
html[data-theme="dark"] .ab-popular-title,
html[data-theme="dark"] .ab-related-body h3,
html[data-theme="dark"] .ab-nav-title,
html[data-theme="dark"] .ab-comment-author,
html[data-theme="dark"] .ab-author-name-big a,
html[data-theme="dark"] .ab-entry-content h2,
html[data-theme="dark"] .ab-entry-content h3 {
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-entry-content p,
html[data-theme="dark"] .ab-comment-content,
html[data-theme="dark"] .ab-card-large-excerpt,
html[data-theme="dark"] .ab-card-medium-excerpt,
html[data-theme="dark"] .ab-author-bio,
html[data-theme="dark"] .ab-archive-desc {
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-sidebar-search {
    border-color: #374151;
    background: #1F2937;
}

html[data-theme="dark"] .ab-search-form-lg {
    border-color: #374151;
}

html[data-theme="dark"] .ab-sidebar-search-input,
html[data-theme="dark"] .ab-search-input-lg {
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-form-input,
html[data-theme="dark"] .ab-form-textarea {
    background: #1F2937;
    border-color: #374151;
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-author-box {
    background: linear-gradient(135deg, #1F2937, #111827);
    border-color: #374151;
}

html[data-theme="dark"] .ab-share-btn {
    background: #1F2937;
    border-color: #374151;
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-popular-item:hover {
    background: transparent;
}

html[data-theme="dark"] .ab-sidebar-cats a {
    color: #D1D5DB;
}

html[data-theme="dark"] .ab-breadcrumbs a {
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-tag {
    background: #1F2937;
    border-color: #374151;
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-subcat-chip {
    background: #1F2937;
    border-color: #374151;
    color: #D1D5DB;
}

html[data-theme="dark"] .ab-nav-prev:hover,
html[data-theme="dark"] .ab-nav-next:hover {
    background: #1F2937;
}

html[data-theme="dark"] .ab-toc {
    background: #1F2937;
    border-color: #374151;
}

html[data-theme="dark"] .ab-toc-header {
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-toc-list li a {
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-newsletter-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0D9488 100%);
}

html[data-theme="dark"] .ab-promo-card {
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

html[data-theme="dark"] .ab-comment,
html[data-theme="dark"] .ab-card-compact,
html[data-theme="dark"] .ab-sidebar-cats li,
html[data-theme="dark"] .ab-popular-item,
html[data-theme="dark"] .ab-post-tags,
html[data-theme="dark"] .ab-share-bar,
html[data-theme="dark"] .ab-post-nav,
html[data-theme="dark"] .ab-pagination,
html[data-theme="dark"] .ab-archive-header,
html[data-theme="dark"] .ab-block-header {
    border-color: #374151;
}

html[data-theme="dark"] .ab-pagination .page-numbers {
    border-color: #374151;
    color: #D1D5DB;
}

html[data-theme="dark"] .ab-back-to-top {
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

html[data-theme="dark"] .ab-cat-count {
    background: #374151;
    color: #9CA3AF;
}

html[data-theme="dark"] .ab-ig-card {
    background: #1F2937;
    border-color: #374151;
}

html[data-theme="dark"] .ab-product-mini {
    border-color: #374151;
}
html[data-theme="dark"] .ab-widget-products-premium {
    background: linear-gradient(160deg, #111827, #1F2937);
    border-color: #374151;
}
html[data-theme="dark"] .ab-sp-card {
    background: #1F2937;
    border-color: #374151;
}
html[data-theme="dark"] .ab-sp-img {
    background: #111827;
}
html[data-theme="dark"] .ab-sp-name {
    color: #F3F4F6;
}
html[data-theme="dark"] .ab-sticky-cta-inner {
    background: linear-gradient(160deg, #111827, #1F2937);
    border-color: #374151;
}

html[data-theme="dark"] .ab-product-mini-name,
html[data-theme="dark"] .ab-product-inline-name {
    color: #F3F4F6;
}

html[data-theme="dark"] .ab-product-inline-card {
    background: #1F2937;
}

/* Dark mode: All inline product themes get unified dark bg */
html[data-theme="dark"] .ab-inline-products,
html[data-theme="dark"] .ab-ip-trending,
html[data-theme="dark"] .ab-ip-flash-sale,
html[data-theme="dark"] .ab-ip-sale,
html[data-theme="dark"] .ab-ip-sets,
html[data-theme="dark"] .ab-ip-new-arrivals,
html[data-theme="dark"] .ab-ip-girls,
html[data-theme="dark"] .ab-ip-boys,
html[data-theme="dark"] .ab-ip-featured,
html[data-theme="dark"] .ab-ip-seasonal,
html[data-theme="dark"] .ab-ip-random {
    background: linear-gradient(135deg, #111827, #1F2937);
    border-color: #374151;
}

html[data-theme="dark"] .ab-ip-icon {
    background: rgba(255,255,255,.08);
}

html[data-theme="dark"] .ab-ip-subtitle {
    color: #9CA3AF;
}
html[data-theme="dark"] .ab-ip-tag-discount {
    background: linear-gradient(135deg, #7F1D1D, #991B1B);
    color: #FCA5A5;
    border-color: rgba(239,68,68,.2);
}
html[data-theme="dark"] .ab-ip-tag-count {
    background: linear-gradient(135deg, #1E3A5F, #1E40AF);
    color: #93C5FD;
    border-color: rgba(59,130,246,.2);
}
html[data-theme="dark"] .ab-ip-tag-sale {
    background: linear-gradient(135deg, #78350F, #92400E);
    color: #FDE68A;
    border-color: rgba(245,158,11,.2);
}
