/* ==========================================================================
   Accessories Archive — archive-accessories.php
   Version: 1.0.0
   Color scheme: Indigo #667eea / Purple #764ba2 / Amber #f59e0b
   ========================================================================== */

/* ── Base ──────────────────────────────────────────────────────────────────── */
.acc-archive-main {
    background: #0f0f1e;
    min-height: 100vh;
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.acc-archive-hero {
    position: relative;
    overflow: hidden;
    padding: 180px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #0d0d22 0%, #1a1435 55%, #2a1060 100%);
}

/* Animated orbs */
.acc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.acc-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: accOrbFloat 10s ease-in-out infinite;
}
.acc-hero-orb--1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(102,126,234,.45), transparent);
    top: -130px; left: -130px;
}
.acc-hero-orb--2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(118,75,162,.4), transparent);
    bottom: -110px; right: -90px;
    animation-delay: -5s;
}
@keyframes accOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(22px, -22px) scale(1.05); }
    66%       { transform: translate(-16px, 16px) scale(.97); }
}
.acc-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #0f0f1e);
}
.acc-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

/* Hero content */
.acc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}
.acc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102,126,234,.15);
    border: 1px solid rgba(102,126,234,.35);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 20px;
    font-size: .85rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: .5px;
}
.acc-category-icon { font-size: 1.1rem; }

.acc-hero-tagline {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.acc-archive-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a5b4fc, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.acc-archive-description {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero buttons */
.acc-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.acc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: .95rem;
    transition: transform .2s, box-shadow .2s;
}
.acc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,.4);
    color: #fff;
}
.acc-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s, border-color .2s;
}
.acc-btn-secondary:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(102,126,234,.5);
    color: #fff;
}

/* Scroll hint */
.acc-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.acc-scroll-hint-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(102,126,234,.7), transparent);
    margin: 0 auto;
    animation: accScrollPulse 2s ease-in-out infinite;
}
@keyframes accScrollPulse {
    0%, 100% { opacity: .4; transform: scaleY(1); }
    50%       { opacity: 1;  transform: scaleY(1.2); }
}

/* ── FILTER + CONTENT section ──────────────────────────────────────────────── */
.acc-archive-content {
    padding: 50px 0 80px;
}

/* ── FILTER BAR ────────────────────────────────────────────────────────────── */
.acc-filter-section {
    background: #18183a;
    border: 1px solid rgba(102,126,234,.2);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 30px rgba(0,0,0,.35);
}

/* Filter header */
.acc-filter-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102,126,234,.15);
}
.acc-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.acc-filter-title i { font-size: .9rem; }

.acc-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(102,126,234,.12);
    border: 1px solid rgba(102,126,234,.28);
    color: #a5b4fc;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-left: auto;
}
.acc-filter-toggle:hover { background: rgba(102,126,234,.22); }

.acc-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
    transition: color .2s;
}
.acc-filter-clear:hover { color: #ff4444; }

/* Filter content grid */
.acc-filter-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto;
    gap: 16px;
    align-items: end;
}

/* Filter group */
.acc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.acc-filter-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.acc-filter-label i { color: #a5b4fc; font-size: .8rem; }

/* Input and selects */
.acc-filter-input,
.acc-filter-select {
    background: #0f0f1e;
    border: 1px solid rgba(102,126,234,.25);
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.acc-filter-input::placeholder { color: rgba(255,255,255,.3); }
.acc-filter-input:focus,
.acc-filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}
.acc-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a5b4fc' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px;
    padding-right: 36px;
    cursor: pointer;
}
.acc-filter-select option { background: #18183a; color: #fff; }

/* Apply button */
.acc-filter-actions { justify-content: flex-end; }
.acc-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 11px 26px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.acc-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,.35);
}

/* Active filter tags */
.acc-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(102,126,234,.1);
}
.acc-active-label {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.acc-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.acc-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(102,126,234,.12);
    border: 1px solid rgba(102,126,234,.28);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: .8rem;
    color: #a5b4fc;
    font-weight: 600;
}
.acc-tag-remove {
    color: rgba(165,180,252,.6);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    margin-left: 2px;
    transition: color .15s;
}
.acc-tag-remove:hover { color: #ff6b6b; }

/* ── Results summary ───────────────────────────────────────────────────────── */
.acc-results-summary { margin-bottom: 24px; }
.acc-results-count {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.acc-results-count i { color: #a5b4fc; }
.acc-results-count strong { color: #a5b4fc; }

/* ── ACCESSORIES GRID ──────────────────────────────────────────────────────── */
.acc-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* Card */
.acc-archive-card {
    background: #18183a;
    border: 1px solid rgba(102,126,234,.14);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}
.acc-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(102,126,234,.3);
    border-color: rgba(102,126,234,.35);
}

/* Card image */
.acc-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f0f1e;
}
.acc-card-image a { display: block; height: 100%; }
.acc-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.acc-archive-card:hover .acc-card-thumbnail { transform: scale(1.04); }

.acc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(102,126,234,.25);
    background: #0f0f1e;
}

/* Brand badge */
.acc-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(102,126,234,.18);
    border: 1px solid rgba(102,126,234,.35);
    color: #a5b4fc;
    font-size: .74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* Award badge */
.acc-award-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245,158,11,.18);
    border: 1px solid rgba(245,158,11,.4);
    color: #f59e0b;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
}

/* Overlay */
.acc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    opacity: 0;
    transition: opacity .25s;
}
.acc-archive-card:hover .acc-card-overlay { opacity: 1; }
.acc-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    transform: translateY(8px);
    transition: transform .25s;
}
.acc-archive-card:hover .acc-view-btn { transform: translateY(0); }

/* Card content */
.acc-card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 7px;
}

/* Term badges */
.acc-card-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.acc-term-badge {
    background: rgba(102,126,234,.12);
    border: 1px solid rgba(102,126,234,.25);
    color: #a5b4fc;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: background .2s;
}
.acc-term-badge:hover {
    background: rgba(102,126,234,.22);
    color: #a5b4fc;
}

/* Title */
.acc-card-title {
    font-size: .97rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.acc-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.acc-card-title a:hover { color: #a5b4fc; }

/* Stars */
.acc-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.acc-stars { display: flex; gap: 2px; }
.acc-star { font-size: 1rem; }
.acc-star--filled { color: #f59e0b; }
.acc-star--half   { color: #f59e0b; opacity: .6; }
.acc-star--empty  { color: rgba(255,255,255,.2); }
.acc-rating-val {
    color: rgba(255,255,255,.5);
    font-size: .78rem;
    font-weight: 600;
}

/* Excerpt */
.acc-card-excerpt {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    line-height: 1.5;
    flex: 1;
}

/* Footer */
.acc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.acc-card-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f59e0b;
    font-weight: 700;
    font-size: .9rem;
}
.acc-card-price i { font-size: .8rem; opacity: .75; }
.acc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a5b4fc;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.acc-read-more:hover { color: #667eea; gap: 8px; }

/* ── No results ────────────────────────────────────────────────────────────── */
.acc-no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,.5);
}
.acc-no-results i {
    font-size: 3.5rem;
    color: rgba(102,126,234,.25);
    margin-bottom: 20px;
    display: block;
}
.acc-no-results h3 {
    font-size: 1.5rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 10px;
}
.acc-no-results p { margin-bottom: 24px; }
.acc-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
}
.acc-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,.35);
    color: #fff;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.acc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.acc-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.acc-pagination .page-numbers li a,
.acc-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #18183a;
    border: 1px solid rgba(102,126,234,.2);
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.acc-pagination .page-numbers li a:hover {
    background: rgba(102,126,234,.15);
    border-color: rgba(102,126,234,.45);
    color: #a5b4fc;
}
.acc-pagination .page-numbers li .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    font-weight: 800;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .acc-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .acc-filter-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .acc-search-group { grid-column: 1 / -1; }
    .acc-filter-actions { grid-column: 1 / -1; }
    .acc-apply-btn { width: 100%; justify-content: center; }
    .acc-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .acc-archive-hero { padding: 140px 16px 60px; }
    .acc-archive-title { font-size: 2.2rem; }

    .acc-filter-toggle { display: inline-flex; }
    .acc-filter-content {
        display: none;
        grid-template-columns: 1fr;
        margin-top: 16px;
    }
    .acc-filter-content.active { display: grid; }
    .acc-apply-btn { width: 100%; justify-content: center; }

    .acc-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
    .acc-archive-hero { padding: 120px 14px 50px; }
    .acc-archive-title { font-size: 1.8rem; }
    .acc-hero-actions { flex-direction: column; align-items: center; }
    .acc-filter-section { padding: 18px 16px; }
    .acc-archive-grid { grid-template-columns: 1fr; }
}
