/* ================================================
   ILO ROBOT - ACCESSORIE PAGE (MODERN)
   Clean, Grid-based, Interactive
   ================================================ */

:root {
    /* Colors */
    --ilo-blue: #24b4b1;
    --ilo-blue-hover: #1d9996;
    --ilo-black: #17272d;
    --ilo-dark-grey: #4a5568;
    --ilo-grey: #8d9da8; 
    --ilo-light-grey: #e2e8f0;
    --ilo-white: #ffffff;
    --ilo-bg-light: #f6f9fc;
    
    /* Gradients */
    --ilo-gradient-accent: linear-gradient(135deg, #24b4b1 0%, #1d9996 100%);
    --ilo-gradient-hero: linear-gradient(180deg, #f1f7fb 0%, #ffffff 100%);
    
    /* Shadows & Effects */
    --ilo-shadow-sm: 0 4px 10px rgba(23, 39, 45, 0.04);
    --ilo-shadow-hover: 0 20px 40px rgba(23, 39, 45, 0.1);
    
    /* Radius */
    --ilo-radius-sm: 12px;
    --ilo-radius-md: 24px;
    
    /* Transitions */
    --ilo-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'poppins', sans-serif;
    background-color: var(--ilo-bg-light);
    color: var(--ilo-black);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; }

/* ---------- Layout Wrapper ---------- */
.accessorie-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ---------- HERO SECTION ---------- */
.accessorie-hero {
    text-align: center;
    padding: 140px 20px 60px;
    background: var(--ilo-gradient-hero);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.accessorie-hero__title {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--ilo-black);
}

.accessorie-hero__text {
    font-size: 1.1rem;
    color: var(--ilo-dark-grey);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Install Box */
.install-box {
    background: var(--ilo-white);
    border: 1px solid var(--ilo-light-grey);
    border-radius: var(--ilo-radius-md);
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: var(--ilo-shadow-sm);
    text-align: center;
}

.install-box__title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.install-box esp-web-install-button {
    display: inline-block;
    margin: 15px 0;
}

/* ---------- CONTROLS & FILTERS ---------- */
.controls-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--ilo-white);
    padding: 20px;
    border-radius: var(--ilo-radius-md);
    box-shadow: var(--ilo-shadow-sm);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-group label {
    font-weight: 600;
    color: var(--ilo-dark-grey);
    white-space: nowrap;
}

.modern-select, .modern-input {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--ilo-light-grey);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--ilo-bg-light);
    outline: none;
    transition: all 0.3s var(--ilo-ease);
}

.modern-select:focus, .modern-input:focus {
    border-color: var(--ilo-blue);
    box-shadow: 0 0 0 3px rgba(36, 180, 177, 0.1);
}

/* Category Chips */
.filters-section {
    margin-bottom: 40px;
}

.filters-header {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ilo-dark-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Custom styled checkbox as chips */
.filter-chip {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-chip span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--ilo-white);
    border: 1px solid var(--ilo-light-grey);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--ilo-grey);
    transition: all 0.2s var(--ilo-ease);
}

.filter-chip input:checked + span {
    background: var(--ilo-blue);
    color: white;
    border-color: var(--ilo-blue);
    box-shadow: 0 4px 10px rgba(36, 180, 177, 0.3);
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--ilo-blue);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    display: none; /* hidden by default */
}

/* ---------- PROGRAMS GRID ---------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--ilo-white);
    border-radius: var(--ilo-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s var(--ilo-ease);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ilo-shadow-hover);
}

.program-card__img-wrapper {
    height: 200px; /* Reduced since no full product image usually */
    background: var(--ilo-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.program-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--ilo-radius-sm);
}

.program-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card__title {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--ilo-black);
}

.program-card__category {
    font-size: 0.85rem;
    color: var(--ilo-grey);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--ilo-bg-light);
    padding: 4px 10px;
    border-radius: 6px;
}

.program-card__btn {
    margin-top: auto;
    background: var(--ilo-gradient-accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    font-size: 0.95rem;
}

.program-card__btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(36, 180, 177, 0.4);
}

/* Msg box overrides */
#message {
    font-family: 'poppins', sans-serif;
    padding: 12px 24px;
    border-radius: 50px;
    background: #333;
    color: white;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0; 
    /* The JS handles opacity, just styling base here */
}

@media (max-width: 768px) {
    .accessorie-hero { padding-top: 100px; }
    .controls-section { flex-direction: column; align-items: stretch; }
}
