/* ---------- Saved Searches ---------- */

/* ============================================================
   Saved Searches — STYLES
   Keep page/component styles in logical sections below.
   ============================================================ */

/* APEMART — SAVED SEARCHES PAGE POLISH */
.saved-page{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:28px 24px 70px;
    box-sizing:border-box;
}

.saved-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 2px 22px;
    font-size:13px;
    color:#7b8490;
}
.saved-breadcrumb a{
    color:#6b7280;
    text-decoration:none;
    font-weight:600;
}
.saved-breadcrumb a:hover{color:#ff6b00}
.saved-breadcrumb .current{color:#ff6b00;font-weight:700}

/* Keep the page itself open and continuous; no white outer cards. */
.page-head{
    background:transparent;
    border:0;
    border-radius:0;
    padding:4px 4px 24px;
    margin:0;
}
.page-head span{
    color:#f36b21;
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
}
.page-head h1{
    font-size:34px;
    margin:8px 0;
    color:#20242a;
}
.page-head p{
    color:#667085;
    margin:0;
}

.save-form{
    display:grid;
    grid-template-columns:1.2fr 1.5fr 1fr 1fr auto;
    gap:10px;
    background:transparent;
    border:0;
    border-radius:0;
    padding:0 4px 8px;
}
.save-form input{
    border:1px solid rgba(120,130,145,.24);
    background:rgba(255,255,255,.58);
    border-radius:10px;
    padding:12px;
    outline:none;
}
.save-form input:focus{
    border-color:rgba(255,107,0,.45);
    box-shadow:0 0 0 3px rgba(255,107,0,.08);
}
.save-form button{
    border:0;
    background:#ff6b00;
    color:#fff;
    border-radius:10px;
    padding:12px 16px;
    font-weight:800;
    cursor:pointer;
}

.saved-list{
    display:grid;
    gap:12px;
    margin-top:18px;
}
.saved-card{
    background:rgba(255,255,255,.72);
    border:1px solid rgba(238,238,238,.9);
    border-radius:16px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    box-shadow:0 8px 24px rgba(31,41,55,.05);
}
.saved-card h3{margin:0 0 5px}
.saved-card p{margin:0;color:#667085}
.saved-actions{display:flex;gap:8px}
.saved-actions button{
    border:1px solid #ddd;
    background:#fff;
    border-radius:9px;
    padding:9px 12px;
    cursor:pointer;
}

body.dark-mode .page-head h1,
html[data-theme="dark"] .page-head h1{color:#f3f4f6}
body.dark-mode .page-head p,
html[data-theme="dark"] .page-head p,
body.dark-mode .saved-card p,
html[data-theme="dark"] .saved-card p{color:#aeb6c2}
body.dark-mode .save-form input,
html[data-theme="dark"] .save-form input{
    background:rgba(17,24,39,.45);
    border-color:rgba(148,163,184,.24);
    color:#f3f4f6;
}
body.dark-mode .saved-card,
html[data-theme="dark"] .saved-card{
    background:rgba(31,41,55,.72);
    border-color:rgba(148,163,184,.16);
}
body.dark-mode .saved-actions button,
html[data-theme="dark"] .saved-actions button{
    background:#1f2937;
    color:#f3f4f6;
    border-color:#374151;
}
body.dark-mode .saved-breadcrumb a,
html[data-theme="dark"] .saved-breadcrumb a{color:#aeb6c2}
body.dark-mode .saved-breadcrumb .current,
html[data-theme="dark"] .saved-breadcrumb .current{color:#ff8a3d}

@media(max-width:800px){
    .saved-page{padding:22px 14px 55px}
    .saved-breadcrumb{margin:0 2px 16px;font-size:12px}
    .page-head{padding:2px 2px 20px}
    .page-head h1{font-size:30px}
    .save-form{grid-template-columns:1fr 1fr;padding:0 2px 4px}
    .save-form button{grid-column:1/-1}
    .saved-card{display:block}
    .saved-actions{margin-top:12px}
}
