/* ==========================================================================
   CYDESA - Category Subpage Styles (Light Theme)
   Matches the main site's color palette
   ========================================================================== */

/* ---------- CATEGORY HERO ---------- */
.cat-hero {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #0d3320 0%, #145C2E 50%, #1B7A3D 100%);
    overflow: hidden;
}

.cat-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(102, 187, 106, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cat-hero .container { position: relative; z-index: 1; }

.cat-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.3s;
}
.cat-hero__back:hover { color: var(--color-secondary-light); }

.cat-hero__content { max-width: 720px; }

.cat-hero__icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.3);
}
.cat-hero__icon svg {
    width: 32px; height: 32px;
    stroke: #fff; fill: none; stroke-width: 1.8;
}

.cat-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800; color: #fff;
    margin-bottom: 16px; line-height: 1.15;
}
.cat-hero h1 span {
    background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cat-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem; line-height: 1.7; max-width: 600px;
}

.cat-hero__stats {
    display: flex; gap: 40px;
    margin-top: 40px; padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cat-stat { display: flex; flex-direction: column; gap: 4px; }
.cat-stat strong {
    font-size: 2rem; font-weight: 800; color: #fff;
    font-family: var(--font-heading);
}
.cat-stat span {
    font-size: 0.82rem; color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ---------- SEARCH ---------- */
.cat-search {
    padding: 32px 0 20px;
    background: var(--color-light);
    position: sticky; top: 64px; z-index: 50;
    border-bottom: 1px solid var(--color-gray-light);
}
.cat-search__box {
    display: flex; align-items: center; gap: 12px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 14px; padding: 14px 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.cat-search__box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 122, 61, 0.12);
}
.cat-search__box svg { color: var(--color-gray); flex-shrink: 0; }
.cat-search__box input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--color-dark); font-size: 1rem; font-family: inherit;
}
.cat-search__box input::placeholder { color: var(--color-gray); }
.cat-search__clear {
    background: var(--color-gray-light); border: none;
    color: var(--color-gray); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: all 0.2s;
}
.cat-search__clear:hover { background: var(--color-primary); color: #fff; }

.cat-search__filters {
    display: flex; gap: 8px; margin-top: 16px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
}
.cat-search__filters::-webkit-scrollbar { display: none; }

.brand-filter {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    color: var(--color-gray);
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    white-space: nowrap; font-family: inherit;
    display: flex; align-items: center; gap: 6px;
}
.brand-filter span {
    background: var(--color-light); padding: 2px 7px;
    border-radius: 100px; font-size: 0.72rem; font-weight: 700;
    color: var(--color-dark-alt);
}
.brand-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.brand-filter.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.brand-filter.active span {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------- SECTION HEADERS ---------- */
.cat-section-header { margin-bottom: 40px; }
.cat-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(27, 122, 61, 0.08), rgba(102, 187, 106, 0.08));
    border: 1px solid rgba(27, 122, 61, 0.15);
    padding: 6px 16px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.cat-badge--gold {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(240, 192, 64, 0.08));
    border-color: rgba(212, 160, 23, 0.2);
    color: var(--color-secondary-dark);
}
.cat-section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--color-dark); margin-bottom: 8px;
}
.cat-section-header h2 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cat-section-header p { color: var(--color-gray); font-size: 0.95rem; }

/* ---------- FEATURED SECTION ---------- */
.cat-featured {
    padding: 60px 0;
    background: var(--color-light);
}
.cat-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ---------- FEATURED CARD ---------- */
.featured-card {
    background: var(--color-white);
    border: 2px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.featured-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), var(--color-secondary));
}
.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(212, 160, 23, 0.15), 0 0 0 2px rgba(212, 160, 23, 0.25);
}

.featured-card__badge {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff; padding: 4px 12px;
    border-radius: 100px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.featured-card__brand-logo {
    height: 36px; margin-bottom: 20px;
    display: flex; align-items: center;
}
.featured-card__brand-logo img {
    height: 100%; width: auto; object-fit: contain;
}
.featured-card__brand-logo span {
    font-size: 0.85rem; font-weight: 700;
    color: var(--color-gray);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.featured-card__sku {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 800;
    color: var(--color-dark); margin-bottom: 8px;
}
.featured-card__desc {
    color: var(--color-gray);
    font-size: 0.88rem; line-height: 1.5;
    margin-bottom: 24px; min-height: 42px;
}
.featured-card__actions {
    display: flex; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.featured-card__doc {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-gray); text-decoration: none;
    font-size: 0.8rem; font-weight: 500;
    padding: 6px 12px; border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid var(--color-gray-light);
}
.featured-card__doc:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(27, 122, 61, 0.05);
}
.btn--sm { padding: 8px 18px !important; font-size: 0.82rem !important; }

/* ---------- OTHER PRODUCTS SECTION (Simple List) ---------- */
.cat-catalog {
    padding: 60px 0 80px;
    background: var(--color-white);
}
.cat-catalog__list {
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Brand header rows */
.other-brand-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-light), rgba(27, 122, 61, 0.04));
    border-bottom: 1px solid var(--color-gray-light);
    border-top: 1px solid var(--color-gray-light);
}
.other-brand-header:first-child {
    border-top: none;
}
.other-brand-logo {
    height: 24px; width: auto; object-fit: contain;
}
.other-brand-header h3 {
    font-family: var(--font-heading);
    font-size: 0.92rem; font-weight: 700;
    color: var(--color-dark); flex: 1;
}
.other-brand-count {
    font-size: 0.72rem; color: var(--color-gray);
    background: var(--color-white);
    padding: 3px 10px; border-radius: 100px;
    font-weight: 700;
    border: 1px solid var(--color-gray-light);
}

/* Individual product rows */
.other-product-item {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    padding: 12px 24px 12px 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
}
.other-product-item:hover {
    background: rgba(27, 122, 61, 0.02);
}
.other-product-info {
    display: flex; align-items: center;
    gap: 16px; flex: 1; min-width: 0;
}
.other-product-sku {
    font-size: 0.82rem; font-weight: 700;
    color: var(--color-gray);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap;
    font-family: inherit;
}
.other-product-name {
    font-size: 0.85rem; color: var(--color-gray);
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}
.other-product-quote {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-primary);
    text-decoration: none; font-size: 0.8rem;
    font-weight: 600; white-space: nowrap;
    padding: 6px 14px; border-radius: 8px;
    border: 1px solid rgba(27, 122, 61, 0.2);
    background: rgba(27, 122, 61, 0.04);
    transition: all 0.3s;
    flex-shrink: 0;
}
.other-product-quote svg {
    flex-shrink: 0;
}
.other-product-quote:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.other-product-quote:hover svg {
    fill: #fff;
}

/* ---------- CTA ---------- */
.cat-cta {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, rgba(27, 122, 61, 0.04) 0%, rgba(212, 160, 23, 0.03) 100%);
    border-top: 1px solid var(--color-gray-light);
}
.cat-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: var(--color-dark); margin-bottom: 12px;
}
.cat-cta p {
    color: var(--color-gray); font-size: 1rem;
    margin-bottom: 32px; max-width: 520px;
    margin-left: auto; margin-right: auto;
}
.cat-cta .btn-group { justify-content: center; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .cat-hero { padding: 120px 0 48px; }
    .cat-hero__stats { gap: 24px; flex-wrap: wrap; }
    .cat-stat strong { font-size: 1.6rem; }
    .cat-featured__grid { grid-template-columns: 1fr; }
    .cat-search { top: 56px; }
    .other-product-item {
        flex-direction: column; align-items: flex-start;
        gap: 10px; padding: 14px 20px 14px 24px;
    }
    .other-product-info {
        flex-direction: column; align-items: flex-start; gap: 6px;
    }
    .other-product-name { white-space: normal; }
}
@media (max-width: 480px) {
    .cat-hero h1 { font-size: 1.8rem; }
    .featured-card { padding: 24px 20px; }
    .cat-hero__stats { gap: 16px; }
}
